Skip to content

Commit

Permalink
Fix tooltip on lang-specific scopes (#2013)
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey authored Nov 9, 2023
1 parent 3b5eed1 commit 53c76d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cursorless-vscode/src/ScopeTreeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,13 @@ class ScopeSupportTreeItem extends TreeItem {
isVisualized: boolean,
) {
let label: string;
let tooltip: string | undefined;
let tooltip: string;

if (scopeTypeInfo.spokenForm.type === "success") {
label = scopeTypeInfo.spokenForm.spokenForms
.map((spokenForm) => `"${spokenForm}"`)
.join(" | ");
tooltip = label;
} else {
label = "-";
tooltip = scopeTypeInfo.spokenForm.requiresTalonUpdate
Expand Down

0 comments on commit 53c76d3

Please sign in to comment.