Skip to content

Commit ac23751

Browse files
committed
fix(vscode): correct handling when opening library in keywords view if keyword is loaded twice with a different alias
fixes: #318
1 parent 518aa12 commit ac23751

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: vscode-client/keywordsTreeViewProvider.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ export class KeywordsTreeViewProvider
124124

125125
if (item instanceof KeywordItem) {
126126
if (item.document === undefined) return;
127-
128-
url = await this.languageClientsManager.getDocumentionUrl(item.document, item.parent?.id, item.id);
127+
const item_id = item.id?.split("+")[1];
128+
url = await this.languageClientsManager.getDocumentionUrl(item.document, item.parent?.id, item_id);
129129
} else if (item instanceof ImportItem) {
130130
if (item.document === undefined) return;
131131

@@ -217,7 +217,7 @@ export class KeywordsTreeViewProvider
217217
currentDoc,
218218
result,
219219
keyword.name,
220-
keyword.id,
220+
`${result.id}+${keyword.id}`,
221221
keyword.signature,
222222
toMarkdown(keyword.documentation),
223223
),

0 commit comments

Comments
 (0)