Skip to content

Commit 6da26a9

Browse files
committed
Fix duplicate resources sometimes opened from references
1 parent e32a13b commit 6da26a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

extensions/markdown-language-features/src/languageFeatures/documentLinkProvider.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,9 @@ function parseLink(
8181
return undefined;
8282
}
8383

84-
resourceUri = resourceUri.with({ fragment: tempUri.fragment });
85-
8684
return {
8785
kind: 'internal',
88-
path: resourceUri,
86+
path: resourceUri.with({ fragment: '' }),
8987
fragment: tempUri.fragment,
9088
};
9189
}

0 commit comments

Comments
 (0)