Skip to content

Commit 60a72c4

Browse files
committed
disable warnning
1 parent e194f25 commit 60a72c4

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

src/commands/handlers.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)