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
'patternErrorMessage': localize('security.allowedUNCHosts.patternErrorMessage','UNC host names must not contain backslashes.')
196
-
},
197
-
'default': [],
198
-
'markdownDescription': localize('security.allowedUNCHosts','A set of UNC host names (without leading or trailing backslash, for example `192.168.0.1` or `my-server`) to allow without user confirmation. If a UNC host is being accessed that is not allowed via this setting or has not been acknowledged via user confirmation, an error will occur and the operation stopped. A restart is required when changing this setting. Find out more about this setting at https://aka.ms/vscode-windows-unc.'),
'patternErrorMessage': localize('security.allowedUNCHosts.patternErrorMessage','UNC host names must not contain backslashes.')
200
213
},
201
-
'security.restrictUNCAccess': {
202
-
'type': 'boolean',
203
-
'default': true,
204
-
'markdownDescription': localize('security.restrictUNCAccess','If enabled, only allows access to UNC host names that are allowed by the `#security.allowedUNCHosts#` setting or after user confirmation. Find out more about this setting at https://aka.ms/vscode-windows-unc.'),
205
-
'scope': ConfigurationScope.MACHINE
206
-
}
214
+
'default': [],
215
+
'markdownDescription': localize('security.allowedUNCHosts','A set of UNC host names (without leading or trailing backslash, for example `192.168.0.1` or `my-server`) to allow without user confirmation. If a UNC host is being accessed that is not allowed via this setting or has not been acknowledged via user confirmation, an error will occur and the operation stopped. A restart is required when changing this setting. Find out more about this setting at https://aka.ms/vscode-windows-unc.'),
216
+
'scope': ConfigurationScope.MACHINE
217
+
},
218
+
'security.restrictUNCAccess': {
219
+
'type': 'boolean',
220
+
'default': true,
221
+
'markdownDescription': localize('security.restrictUNCAccess','If enabled, only allows access to UNC host names that are allowed by the `#security.allowedUNCHosts#` setting or after user confirmation. Find out more about this setting at https://aka.ms/vscode-windows-unc.'),
@@ -320,6 +322,7 @@ export class NativeWindow extends BaseWindow {
320
322
if(!allowedUncHosts.has(host)){
321
323
allowedUncHosts.add(host);
322
324
325
+
awaitgetWorkbenchContribution<DynamicWorkbenchSecurityConfiguration>(DynamicWorkbenchSecurityConfiguration.ID).ready;// ensure this setting is registered
0 commit comments