Skip to content

Commit f6f7e66

Browse files
authored
Don't error on --incremental, just run normally (#908)
1 parent 5c0668a commit f6f7e66

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

internal/execute/system.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ const (
2727
ExitStatusProjectReferenceCycle_OutputsSkipped ExitStatus = 4
2828
ExitStatusNotImplemented ExitStatus = 5
2929
ExitStatusNotImplementedWatch ExitStatus = 6
30-
ExitStatusNotImplementedIncremental ExitStatus = 7
3130
)

internal/execute/tsc.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ func executeCommandLineWorker(sys System, cb cbType, commandLine *tsoptions.Pars
118118
// updateReportDiagnostic
119119
if isWatchSet(configParseResult.CompilerOptions()) {
120120
return ExitStatusSuccess, createWatcher(sys, configParseResult, reportDiagnostic)
121-
} else if isIncrementalCompilation(configParseResult.CompilerOptions()) {
122-
return ExitStatusNotImplementedIncremental, nil
123121
}
122+
// !!! incremental
124123
return performCompilation(
125124
sys,
126125
cb,
@@ -136,9 +135,8 @@ func executeCommandLineWorker(sys System, cb cbType, commandLine *tsoptions.Pars
136135
if isWatchSet(compilerOptionsFromCommandLine) {
137136
// !!! reportWatchModeWithoutSysSupport
138137
return ExitStatusSuccess, createWatcher(sys, commandLine, reportDiagnostic)
139-
} else if isIncrementalCompilation(compilerOptionsFromCommandLine) {
140-
return ExitStatusNotImplementedIncremental, nil
141138
}
139+
// !!! incremental
142140
}
143141
return performCompilation(
144142
sys,

testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ export class class1 {}
1212
},
1313
}
1414

15-
ExitStatus:: 7
15+
ExitStatus:: 0
1616

1717
CompilerOptions::{
1818
"noEmit": true
1919
}
2020
Output::
21-
No output
2221
//// [/home/src/workspaces/project/class1.ts] no change
2322
//// [/home/src/workspaces/project/tsconfig.json] no change
2423

0 commit comments

Comments
 (0)