mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Remove .only and fix fragment used when opening file
Keeping the fragment causes a duplicated file to be opened
This commit is contained in:
@@ -73,7 +73,7 @@ export async function openDocumentLink(engine: MarkdownEngine, targetResource: v
|
||||
}
|
||||
|
||||
async function tryOpenMdFile(engine: MarkdownEngine, resource: vscode.Uri, column: vscode.ViewColumn): Promise<boolean> {
|
||||
await vscode.commands.executeCommand('vscode.open', resource, column);
|
||||
await vscode.commands.executeCommand('vscode.open', resource.with({ fragment: '' }), column);
|
||||
return tryNavigateToFragmentInActiveEditor(engine, resource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user