Skip to content

Commit 53c76d3

Browse files
authored
Fix tooltip on lang-specific scopes (#2013)
## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent 3b5eed1 commit 53c76d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cursorless-vscode/src/ScopeTreeProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,13 @@ class ScopeSupportTreeItem extends TreeItem {
222222
isVisualized: boolean,
223223
) {
224224
let label: string;
225-
let tooltip: string | undefined;
225+
let tooltip: string;
226226

227227
if (scopeTypeInfo.spokenForm.type === "success") {
228228
label = scopeTypeInfo.spokenForm.spokenForms
229229
.map((spokenForm) => `"${spokenForm}"`)
230230
.join(" | ");
231+
tooltip = label;
231232
} else {
232233
label = "-";
233234
tooltip = scopeTypeInfo.spokenForm.requiresTalonUpdate

0 commit comments

Comments
 (0)