mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:20:34 -05:00
remove Comment
This commit is contained in:
@@ -326,18 +326,9 @@ namespace ts.Completions {
|
||||
* Given a path ending at a directory, gets the completions for the path.
|
||||
*/
|
||||
function getCompletionEntriesForDirectoryFragment(fragment: string, scriptPath: string, extensions: string[], includeExtensions: boolean, span: TextSpan, exclude?: string, result: CompletionEntry[] = []): CompletionEntry[] {
|
||||
/*Debug.assert(fragment !== undefined);
|
||||
|
||||
if (fragment === "") {
|
||||
fragment = ".";
|
||||
} else {
|
||||
fragment = getDirectoryPath(fragment);
|
||||
}
|
||||
*/
|
||||
|
||||
fragment = getDirectoryPath(fragment); // TODO: modify fragment so it respects our internal path representation?
|
||||
if (!fragment) {
|
||||
fragment = ".";
|
||||
fragment = "./";
|
||||
}
|
||||
else {
|
||||
fragment = ensureTrailingDirectorySeparator(fragment); // TODO: why is this necessary?
|
||||
|
||||
Reference in New Issue
Block a user