File tree Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Original file line number Diff line number Diff line change 11<div style =" text-align : center ;" >
22 <a href =" https://github.com/Flow-Scanner " >
3- <img src="media/bannerslim.png" style="width: 55 %;" />
3+ <img src="media/bannerslim.png" style="width: 44 %;" />
44 </a >
55</div >
66
Original file line number Diff line number Diff line change @@ -29,35 +29,12 @@ export default class Commands {
2929 return [
3030 command ,
3131 async ( ...args : any [ ] ) : Promise < any > => {
32- this . checkExtensionAutoUpdate ( ) ; // nag before running command
3332 return handler ( ...args ) ;
3433 }
3534 ] as const ;
3635 } ) ;
3736 }
3837
39- private async checkExtensionAutoUpdate ( ) {
40- const autoUpdate = vscode . workspace
41- . getConfiguration ( undefined , null )
42- . get < string | boolean > ( "extensions.autoUpdate" , true ) ;
43-
44- // Treat "onlyEnabledExtensions" and false as OK; warn only if true
45- if ( autoUpdate === true ) {
46- const selection = await vscode . window . showWarningMessage (
47- "⚠️ Extension auto-update for *all* extensions is enabled. Please disable or restrict it." ,
48- "Open Settings" ,
49- "Ignore"
50- ) ;
51-
52- if ( selection === "Open Settings" ) {
53- vscode . commands . executeCommand (
54- "workbench.action.openSettings" ,
55- "extensions.autoUpdate"
56- ) ;
57- }
58- }
59- }
60-
6138 private openDocumentation ( ) {
6239 const url = vscode . Uri . parse ( 'https://github.com/Flow-Scanner/lightning-flow-scanner-core?tab=readme-ov-file#default-rules' ) ;
6340 vscode . env . openExternal ( url ) ;
You can’t perform that action at this time.
0 commit comments