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> {
151151
152152 this . shownUpdateTalonMessage = true ;
153153
154+ const HOW_BUTTON_TEXT = "How?" ;
155+ const DONT_SHOW_AGAIN_BUTTON_TEXT = "Don't show again" ;
154156 const result = await this . vscodeApi . window . showInformationMessage (
155157 "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 ,
158160 ) ;
159161
160- if ( result === "How?" ) {
162+ if ( result === HOW_BUTTON_TEXT ) {
161163 await this . vscodeApi . env . openExternal (
162164 URI . parse (
163165 "https://www.cursorless.org/docs/user/updating/#updating-the-talon-side" ,
164166 ) ,
165167 ) ;
166- } else if ( result === "Don't show again" ) {
168+ } else if ( result === DONT_SHOW_AGAIN_BUTTON_TEXT ) {
167169 await this . context . globalState . update (
168170 DONT_SHOW_TALON_UPDATE_MESSAGE_KEY ,
169171 true ,
You can’t perform that action at this time.
0 commit comments