File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
lang-server/codeLens/providers Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 328
328
"mac" : " cmd+k cmd+a" ,
329
329
"key" : " ctrl+k ctrl+a" ,
330
330
"when" : " !terminalFocus"
331
+ },
332
+ {
333
+ "command" : " ahrefs-continue.interruptGeneration" ,
334
+ "mac" : " cmd+shift+c" ,
335
+ "key" : " ctrl+shift+c"
331
336
}
332
337
],
333
338
"submenus" : [
Original file line number Diff line number Diff line change @@ -325,6 +325,22 @@ export class VerticalPerLineDiffManager {
325
325
context . globalState . update ( interruptGenerationKey , false ) ;
326
326
}
327
327
328
+ if ( context ) {
329
+ const dontShowAgainKey = 'dontShowInfoAgain' ;
330
+ const showInfo = context . globalState . get < boolean > ( dontShowAgainKey , true ) ;
331
+
332
+ if ( showInfo ) {
333
+ const message = "Interrupt generation by pressing CMD+SHIFT+C on Mac or CTRL+SHIFT+C on Windows." ;
334
+ const dontShowAgainButton = "Don't show this again" ;
335
+
336
+ vscode . window . showInformationMessage ( message , dontShowAgainButton ) . then ( selection => {
337
+ if ( selection === dontShowAgainButton ) {
338
+ context . globalState . update ( dontShowAgainKey , false ) ;
339
+ }
340
+ } ) ;
341
+ }
342
+ }
343
+
328
344
try {
329
345
await diffHandler . run (
330
346
streamDiffLines (
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export class VerticalPerLineCodeLensProvider
76
76
? ` (${ getAltOrOption ( ) } ${ getMetaKeyLabel ( ) } N)`
77
77
: ""
78
78
} `,
79
- command : "continue.rejectVerticalDiffBlock" ,
79
+ command : "ahrefs- continue.rejectVerticalDiffBlock" ,
80
80
arguments : [ filepath , i ] ,
81
81
} ) ,
82
82
) ;
You can’t perform that action at this time.
0 commit comments