File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/cursorless-vscode/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -151,19 +151,21 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
151
151
152
152
this . shownUpdateTalonMessage = true ;
153
153
154
+ const HOW_BUTTON_TEXT = "How?" ;
155
+ const DONT_SHOW_AGAIN_BUTTON_TEXT = "Don't show again" ;
154
156
const result = await this . vscodeApi . window . showInformationMessage (
155
157
"In order to see your custom spoken forms in the sidebar, you'll need to update your Cursorless Talon files." ,
156
- "How?" ,
157
- "Don't show again" ,
158
+ HOW_BUTTON_TEXT ,
159
+ DONT_SHOW_AGAIN_BUTTON_TEXT ,
158
160
) ;
159
161
160
- if ( result === "How?" ) {
162
+ if ( result === HOW_BUTTON_TEXT ) {
161
163
await this . vscodeApi . env . openExternal (
162
164
URI . parse (
163
165
"https://www.cursorless.org/docs/user/updating/#updating-the-talon-side" ,
164
166
) ,
165
167
) ;
166
- } else if ( result === "Don't show again" ) {
168
+ } else if ( result === DONT_SHOW_AGAIN_BUTTON_TEXT ) {
167
169
await this . context . globalState . update (
168
170
DONT_SHOW_TALON_UPDATE_MESSAGE_KEY ,
169
171
true ,
You can’t perform that action at this time.
0 commit comments