File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ namespace ts {
486
486
// (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643)
487
487
let options : any ;
488
488
if ( ! directoryExists ( directoryName ) || ( isUNCPath ( directoryName ) && process . platform === "win32" ) ) {
489
- // do nothing if either
489
+ // do nothing if either
490
490
// - target folder does not exist
491
491
// - this is UNC path on Windows (https://github.com/Microsoft/TypeScript/issues/13874)
492
492
return noOpFileWatcher ;
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ namespace FourSlash {
183
183
184
184
// The current caret position in the active file
185
185
public currentCaretPosition = 0 ;
186
- public lastKnownMarker : string = "" ;
186
+ public lastKnownMarker = "" ;
187
187
188
188
// The file that's currently 'opened'
189
189
public activeFile : FourSlashFile ;
Original file line number Diff line number Diff line change 5
5
6
6
namespace Harness . LanguageService {
7
7
export class ScriptInfo {
8
- public version : number = 1 ;
8
+ public version = 1 ;
9
9
public editRanges : { length : number ; textChangeRange : ts . TextChangeRange ; } [ ] = [ ] ;
10
10
private lineMap : number [ ] = undefined ;
11
11
@@ -594,7 +594,7 @@ namespace Harness.LanguageService {
594
594
class SessionServerHost implements ts . server . ServerHost , ts . server . Logger {
595
595
args : string [ ] = [ ] ;
596
596
newLine : string ;
597
- useCaseSensitiveFileNames : boolean = false ;
597
+ useCaseSensitiveFileNames = false ;
598
598
599
599
constructor ( private host : NativeLanguageServiceHost ) {
600
600
this . newLine = this . host . getNewLine ( ) ;
Original file line number Diff line number Diff line change @@ -3115,7 +3115,7 @@ namespace ts.projectSystem {
3115
3115
let options = project . getCompilerOptions ( ) ;
3116
3116
assert . isTrue ( options . maxNodeModuleJsDepth === 2 ) ;
3117
3117
3118
- // Assert the option sticks
3118
+ // Assert the option sticks
3119
3119
projectService . setCompilerOptionsForInferredProjects ( { target : ScriptTarget . ES2016 } ) ;
3120
3120
project = projectService . inferredProjects [ 0 ] ;
3121
3121
options = project . getCompilerOptions ( ) ;
Original file line number Diff line number Diff line change 1
1
/// <reference types="node" />
2
2
3
3
4
- // TODO: extract services types
4
+ // TODO: extract services types
5
5
interface HostCancellationToken {
6
6
isCancellationRequested ( ) : boolean ;
7
7
}
Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ namespace ts.codefix {
94
94
return removeSingleItem ( namedImports . elements , token ) ;
95
95
}
96
96
97
- // handle case where "import d, * as ns from './file'"
97
+ // handle case where "import d, * as ns from './file'"
98
98
// 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,| *'
100
100
const importClause = < ImportClause > token . parent ;
101
101
if ( ! importClause . namedBindings ) { // |import d from './file'| or |import * as ns from './file'|
102
102
const importDecl = findImportDeclaration ( importClause ) ;
You can’t perform that action at this time.
0 commit comments