mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Fix markdown path suggestions on windows
This commit is contained in:
@@ -269,9 +269,13 @@ export class PathCompletionProvider implements vscode.CompletionItemProvider {
|
||||
}
|
||||
|
||||
try {
|
||||
return document.uri.with({
|
||||
path: resolve(dirname(document.uri.path), ref),
|
||||
});
|
||||
if (document.uri.scheme === 'file') {
|
||||
return vscode.Uri.file(resolve(dirname(document.uri.fsPath), ref));
|
||||
} else {
|
||||
return document.uri.with({
|
||||
path: resolve(dirname(document.uri.path), ref),
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
@@ -26,8 +26,7 @@ function getCompletionsAtCursor(resource: vscode.Uri, fileContents: string) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
suite.skip('Markdown path completion provider', () => {
|
||||
suite('Markdown path completion provider', () => {
|
||||
|
||||
setup(async () => {
|
||||
// These tests assume that the markdown completion provider is already registered
|
||||
|
||||
Reference in New Issue
Block a user