Skip to content

Commit 179ceda

Browse files
author
Arthur Ozga
committed
Removed comments and fixed indentation
1 parent 728252f commit 179ceda

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ namespace ts {
11581158

11591159
export function normalizePath(path: string): string {
11601160
path = normalizeSlashes(path);
1161-
const rootLength = getRootLength(path); // TODO: this expects un-slash-normalized strings. eg: 'x:\\...'
1161+
const rootLength = getRootLength(path); // TODO: (arozga) this expects un-slash-normalized strings. eg: 'x:\\...'
11621162
const root = path.substr(0, rootLength);
11631163
const normalized = getNormalizedParts(path, rootLength);
11641164
if (normalized.length) {

src/services/completions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ namespace ts.Completions {
326326
* Given a path ending at a directory, gets the completions for the path, and filters for those entries containing the basename.
327327
*/
328328
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 = "./"; }
330330

331331
fragment = normalizeSlashes(fragment);
332332

@@ -556,7 +556,7 @@ namespace ts.Completions {
556556
const kind = match[2];
557557
const toComplete = match[3];
558558

559-
const scriptPath = getDirectoryPath(sourceFile.path); // TODO: normalize for win10?
559+
const scriptPath = getDirectoryPath(sourceFile.path);
560560
let entries: CompletionEntry[];
561561
if (kind === "path") {
562562
// Give completions for a relative path
@@ -596,7 +596,7 @@ namespace ts.Completions {
596596
// Wrap in try catch because getEffectiveTypeRoots touches the filesystem
597597
typeRoots = getEffectiveTypeRoots(options, host);
598598
}
599-
catch (e) { }
599+
catch (e) {}
600600

601601
if (typeRoots) {
602602
for (const root of typeRoots) {
@@ -1713,15 +1713,15 @@ namespace ts.Completions {
17131713
try {
17141714
return directoryProbablyExists(path, host);
17151715
}
1716-
catch (e) { }
1716+
catch (e) {}
17171717
return undefined;
17181718
}
17191719

17201720
function tryIOAndConsumeErrors<T>(host: LanguageServiceHost, toApply: (...a: any[]) => T, ...args: any[]) {
17211721
try {
17221722
return toApply && toApply.apply(host, args);
17231723
}
1724-
catch (e) { }
1724+
catch (e) {}
17251725
return undefined;
17261726
}
17271727
}

src/services/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ namespace ts {
503503
}
504504

505505
export interface CompletionInfo {
506-
// TODO: (arozga) What does this do?
507506
isMemberCompletion: boolean;
508507

509508
/**

0 commit comments

Comments
 (0)