@@ -326,7 +326,7 @@ namespace ts.Completions {
326
326
* Given a path ending at a directory, gets the completions for the path, and filters for those entries containing the basename.
327
327
*/
328
328
function getCompletionEntriesForDirectoryFragment ( fragment : string , scriptPath : string , extensions : string [ ] , includeExtensions : boolean , span : TextSpan , exclude ?: string , result : CompletionEntry [ ] = [ ] ) : CompletionEntry [ ] {
329
- if ( fragment === undefined ) { fragment = "./" ; } // TODO: (arozga) remove the second check along with adding --strictNullChecks
329
+ if ( fragment === undefined ) { fragment = "./" ; }
330
330
331
331
fragment = normalizeSlashes ( fragment ) ;
332
332
@@ -556,7 +556,7 @@ namespace ts.Completions {
556
556
const kind = match [ 2 ] ;
557
557
const toComplete = match [ 3 ] ;
558
558
559
- const scriptPath = getDirectoryPath ( sourceFile . path ) ; // TODO: normalize for win10?
559
+ const scriptPath = getDirectoryPath ( sourceFile . path ) ;
560
560
let entries : CompletionEntry [ ] ;
561
561
if ( kind === "path" ) {
562
562
// Give completions for a relative path
@@ -596,7 +596,7 @@ namespace ts.Completions {
596
596
// Wrap in try catch because getEffectiveTypeRoots touches the filesystem
597
597
typeRoots = getEffectiveTypeRoots ( options , host ) ;
598
598
}
599
- catch ( e ) { }
599
+ catch ( e ) { }
600
600
601
601
if ( typeRoots ) {
602
602
for ( const root of typeRoots ) {
@@ -1713,15 +1713,15 @@ namespace ts.Completions {
1713
1713
try {
1714
1714
return directoryProbablyExists ( path , host ) ;
1715
1715
}
1716
- catch ( e ) { }
1716
+ catch ( e ) { }
1717
1717
return undefined ;
1718
1718
}
1719
1719
1720
1720
function tryIOAndConsumeErrors < T > ( host : LanguageServiceHost , toApply : ( ...a : any [ ] ) => T , ...args : any [ ] ) {
1721
1721
try {
1722
1722
return toApply && toApply . apply ( host , args ) ;
1723
1723
}
1724
- catch ( e ) { }
1724
+ catch ( e ) { }
1725
1725
return undefined ;
1726
1726
}
1727
1727
}
0 commit comments