Skip to content

Commit b0654dc

Browse files
author
Yui T
committed
Remove enableSingleOutputFile boolean and use singleOutputFilename to check if singleOutputFile is specified
1 parent 451f92b commit b0654dc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/harness/fourslash.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ module FourSlash {
192192
// Whether or not to generate .d.ts file
193193
public enableDeclaration = false;
194194

195-
// Whether or not to generate one output javascript file
196-
public enableSingleOutputFile = false;
197-
198195
// Output filename for single-output-file option
199196
public singleOutputFilename: string = undefined;
200197

@@ -463,10 +460,10 @@ module FourSlash {
463460

464461
public verifyEmitOutput(state: ts.EmitOutputResult, filename?: string) {
465462
if (this.enableDeclaration) {
466-
this.languageServiceShimHost.setCompilationSettings({generateDeclarationFiles: true});
463+
this.languageServiceShimHost.setCompilationSettings({ generateDeclarationFiles: true });
467464
}
468465

469-
if (this.enableSingleOutputFile) {
466+
if (this.singleOutputFilename !== undefined) {
470467
this.languageServiceShimHost.setCompilationSettings({ outFileOption: this.singleOutputFilename });
471468
}
472469

0 commit comments

Comments
 (0)