You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -727,6 +737,29 @@ export class CodeApplication extends Disposable {
727
737
});
728
738
}
729
739
740
+
privateshouldBlockURI(uri: URI): boolean{
741
+
if(uri.authority===Schemas.file&&isWindows){
742
+
constres=dialog.showMessageBoxSync({
743
+
title: product.nameLong,
744
+
type: 'question',
745
+
buttons: [
746
+
mnemonicButtonLabel(localize({key: 'open',comment: ['&& denotes a mnemonic']},"&&Yes")),
747
+
mnemonicButtonLabel(localize({key: 'cancel',comment: ['&& denotes a mnemonic']},"&&No")),
748
+
],
749
+
cancelId: 1,
750
+
message: localize('confirmOpenMessage',"An external application wants to open '{0}' in {1}. Do you want to open this file or folder?",getPathLabel(uri.fsPath),product.nameShort),
751
+
detail: localize('confirmOpenDetail',"If you did not initiate this request, it may represent an attempted attack on your system. Unless you took an explicit action to initiate this request, you should press 'No'"),
0 commit comments