Skip to content

Commit c986aef

Browse files
committed
Remove .only and fix fragment used when opening file
Keeping the fragment causes a duplicated file to be opened
1 parent 830987e commit c986aef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/markdown-language-features/src/test/engine.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { InMemoryDocument } from './inMemoryDocument';
1212

1313
const testFileName = vscode.Uri.file('test.md');
1414

15-
suite.only('markdown.engine', () => {
15+
suite('markdown.engine', () => {
1616
suite('rendering', () => {
1717
const input = '# hello\n\nworld!';
1818
const output = '<h1 data-line="0" class="code-line" id="hello">hello</h1>\n'

extensions/markdown-language-features/src/util/openDocumentLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function openDocumentLink(engine: MarkdownEngine, targetResource: v
7373
}
7474

7575
async function tryOpenMdFile(engine: MarkdownEngine, resource: vscode.Uri, column: vscode.ViewColumn): Promise<boolean> {
76-
await vscode.commands.executeCommand('vscode.open', resource, column);
76+
await vscode.commands.executeCommand('vscode.open', resource.with({ fragment: '' }), column);
7777
return tryNavigateToFragmentInActiveEditor(engine, resource);
7878
}
7979

0 commit comments

Comments
 (0)