File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ namespace ts {
486486 // (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643)
487487 let options : any ;
488488 if ( ! directoryExists ( directoryName ) || ( isUNCPath ( directoryName ) && process . platform === "win32" ) ) {
489- // do nothing if either
489+ // do nothing if either
490490 // - target folder does not exist
491491 // - this is UNC path on Windows (https://github.com/Microsoft/TypeScript/issues/13874)
492492 return noOpFileWatcher ;
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ namespace FourSlash {
183183
184184 // The current caret position in the active file
185185 public currentCaretPosition = 0 ;
186- public lastKnownMarker : string = "" ;
186+ public lastKnownMarker = "" ;
187187
188188 // The file that's currently 'opened'
189189 public activeFile : FourSlashFile ;
Original file line number Diff line number Diff line change 55
66namespace Harness . LanguageService {
77 export class ScriptInfo {
8- public version : number = 1 ;
8+ public version = 1 ;
99 public editRanges : { length : number ; textChangeRange : ts . TextChangeRange ; } [ ] = [ ] ;
1010 private lineMap : number [ ] = undefined ;
1111
@@ -594,7 +594,7 @@ namespace Harness.LanguageService {
594594 class SessionServerHost implements ts . server . ServerHost , ts . server . Logger {
595595 args : string [ ] = [ ] ;
596596 newLine : string ;
597- useCaseSensitiveFileNames : boolean = false ;
597+ useCaseSensitiveFileNames = false ;
598598
599599 constructor ( private host : NativeLanguageServiceHost ) {
600600 this . newLine = this . host . getNewLine ( ) ;
Original file line number Diff line number Diff line change @@ -3115,7 +3115,7 @@ namespace ts.projectSystem {
31153115 let options = project . getCompilerOptions ( ) ;
31163116 assert . isTrue ( options . maxNodeModuleJsDepth === 2 ) ;
31173117
3118- // Assert the option sticks
3118+ // Assert the option sticks
31193119 projectService . setCompilerOptionsForInferredProjects ( { target : ScriptTarget . ES2016 } ) ;
31203120 project = projectService . inferredProjects [ 0 ] ;
31213121 options = project . getCompilerOptions ( ) ;
Original file line number Diff line number Diff line change 11/// <reference types="node" />
22
33
4- // TODO: extract services types
4+ // TODO: extract services types
55interface HostCancellationToken {
66 isCancellationRequested ( ) : boolean ;
77}
Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ namespace ts.codefix {
9494 return removeSingleItem ( namedImports . elements , token ) ;
9595 }
9696
97- // handle case where "import d, * as ns from './file'"
97+ // handle case where "import d, * as ns from './file'"
9898 // or "'import {a, b as ns} from './file'"
99- case SyntaxKind . ImportClause : // this covers both 'import |d|' and 'import |d,| *'
99+ case SyntaxKind . ImportClause : // this covers both 'import |d|' and 'import |d,| *'
100100 const importClause = < ImportClause > token . parent ;
101101 if ( ! importClause . namedBindings ) { // |import d from './file'| or |import * as ns from './file'|
102102 const importDecl = findImportDeclaration ( importClause ) ;
You can’t perform that action at this time.
0 commit comments