Skip to content

Commit 2935bb8

Browse files
committed
fix(vscode): correct resolving resource documentation in keywords treeview
1 parent c86627f commit 2935bb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: packages/language_server/src/robotcode/language_server/robotframework/parts/keywords_treeview.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async def _get_documentation_url(
161161

162162
if entry is not None:
163163
return self.parent.robot_code_action_documentation.build_url(
164-
entry.name, entry.args, document, namespace, keyword_name
164+
entry.import_name, entry.args, document, namespace, keyword_name
165165
)
166166

167167
return None

Diff for: vscode-client/keywordsTreeViewProvider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class KeywordsTreeViewProvider
206206
currentDoc,
207207
lib_or_res.alias ?? lib_or_res.name,
208208
lib_or_res.id,
209-
lib_or_res.type?.toUpperCase(),
209+
lib_or_res.type?.toUpperCase() + (lib_or_res.alias ? ` (${lib_or_res.name})` : ""),
210210
toMarkdown(lib_or_res.documentation),
211211
);
212212
result.keywords =

0 commit comments

Comments
 (0)