diff --git a/src/compiler/core.ts b/src/compiler/core.ts index bcb808fa833..c137dfa644a 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -1158,7 +1158,7 @@ namespace ts { export function normalizePath(path: string): string { path = normalizeSlashes(path); - const rootLength = getRootLength(path); // TODO: this expects un-slash-normalized strings. eg: 'x:\\...' + const rootLength = getRootLength(path); // TODO: (arozga) this expects un-slash-normalized strings. eg: 'x:\\...' const root = path.substr(0, rootLength); const normalized = getNormalizedParts(path, rootLength); if (normalized.length) { diff --git a/src/services/completions.ts b/src/services/completions.ts index 38d8baa6b50..72b648e0082 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -326,7 +326,7 @@ namespace ts.Completions { * Given a path ending at a directory, gets the completions for the path, and filters for those entries containing the basename. */ function getCompletionEntriesForDirectoryFragment(fragment: string, scriptPath: string, extensions: string[], includeExtensions: boolean, span: TextSpan, exclude?: string, result: CompletionEntry[] = []): CompletionEntry[] { - if (fragment === undefined) { fragment = "./"; } // TODO: (arozga) remove the second check along with adding --strictNullChecks + if (fragment === undefined) { fragment = "./"; } fragment = normalizeSlashes(fragment); @@ -556,7 +556,7 @@ namespace ts.Completions { const kind = match[2]; const toComplete = match[3]; - const scriptPath = getDirectoryPath(sourceFile.path); // TODO: normalize for win10? + const scriptPath = getDirectoryPath(sourceFile.path); let entries: CompletionEntry[]; if (kind === "path") { // Give completions for a relative path @@ -596,7 +596,7 @@ namespace ts.Completions { // Wrap in try catch because getEffectiveTypeRoots touches the filesystem typeRoots = getEffectiveTypeRoots(options, host); } - catch (e) { } + catch (e) {} if (typeRoots) { for (const root of typeRoots) { @@ -1713,7 +1713,7 @@ namespace ts.Completions { try { return directoryProbablyExists(path, host); } - catch (e) { } + catch (e) {} return undefined; } @@ -1721,7 +1721,7 @@ namespace ts.Completions { try { return toApply && toApply.apply(host, args); } - catch (e) { } + catch (e) {} return undefined; } } diff --git a/src/services/types.ts b/src/services/types.ts index 95052cdb480..fc9a3da5331 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -503,7 +503,6 @@ namespace ts { } export interface CompletionInfo { - // TODO: (arozga) What does this do? isMemberCompletion: boolean; /**