mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 11:10:48 +00:00
Remove unused function and do not export by default
This commit is contained in:
parent
b3e6a2f884
commit
84e791ea5b
1 changed files with 2 additions and 8 deletions
|
@ -51,16 +51,10 @@ function shouldDoPathCompletion(tag: string, attr: string, value: string): boole
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function providePathSuggestions(value: string, range: Range, activeDocFsPath: string, root?: string): CompletionItem[] {
|
|
||||||
const paths = providePaths(value, activeDocFsPath, root);
|
|
||||||
const suggestions = paths.map(p => pathToSuggestion(p, value, range));
|
|
||||||
return suggestions;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of path suggestions. Folder suggestions are suffixed with a slash.
|
* Get a list of path suggestions. Folder suggestions are suffixed with a slash.
|
||||||
*/
|
*/
|
||||||
export function providePaths(value: string, activeDocFsPath: string, root?: string): string[] {
|
function providePaths(value: string, activeDocFsPath: string, root?: string): string[] {
|
||||||
if (startsWith(value, '/') && !root) {
|
if (startsWith(value, '/') && !root) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
@ -88,7 +82,7 @@ export function providePaths(value: string, activeDocFsPath: string, root?: stri
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function pathToSuggestion(p: string, value: string, range: Range): CompletionItem {
|
function pathToSuggestion(p: string, value: string, range: Range): CompletionItem {
|
||||||
const isDir = p[p.length - 1] === '/';
|
const isDir = p[p.length - 1] === '/';
|
||||||
|
|
||||||
let replaceRange: Range;
|
let replaceRange: Range;
|
||||||
|
|
Loading…
Reference in a new issue