Skip to content

Commit eea0b65

Browse files
authored
Can't disable "An external application wants to open" warnings (fix microsoft#207777) (microsoft#210628)
1 parent 7bf27d5 commit eea0b65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vs/workbench/electron-sandbox/desktop.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,13 @@ import { MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL } from 'vs/platform/window/electron-sand
328328
'type': 'boolean',
329329
'default': true,
330330
'markdownDescription': localize('security.promptForLocalFileProtocolHandling', 'If enabled, a dialog will ask for confirmation whenever a local file or workspace is about to open through a protocol handler.'),
331-
'scope': ConfigurationScope.MACHINE
331+
'scope': ConfigurationScope.APPLICATION
332332
},
333333
'security.promptForRemoteFileProtocolHandling': {
334334
'type': 'boolean',
335335
'default': true,
336336
'markdownDescription': localize('security.promptForRemoteFileProtocolHandling', 'If enabled, a dialog will ask for confirmation whenever a remote file or workspace is about to open through a protocol handler.'),
337-
'scope': ConfigurationScope.MACHINE
337+
'scope': ConfigurationScope.APPLICATION
338338
}
339339
}
340340
});

src/vs/workbench/electron-sandbox/window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export class NativeWindow extends BaseWindow {
331331
// Allow to update security settings around protocol handlers
332332
ipcRenderer.on('vscode:disablePromptForProtocolHandling', (event: unknown, kind: 'local' | 'remote') => {
333333
const setting = kind === 'local' ? 'security.promptForLocalFileProtocolHandling' : 'security.promptForRemoteFileProtocolHandling';
334-
this.configurationService.updateValue(setting, false, ConfigurationTarget.USER_LOCAL);
334+
this.configurationService.updateValue(setting, false, ConfigurationTarget.APPLICATION);
335335
});
336336

337337
// Window Zoom

0 commit comments

Comments
 (0)