mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
unc - adopt setting and handling of allow list (#181916)
* unc - adopt setting and handling of allow list (#5) * unc - adopt setting and handling of allow list * unc - set allow list on server too * unc - pick our patched node.js for now * bump electron * unc - ignore sync is not needed with machine scope * unc - use process set directly * 🆙 22.5.1 * fix compile --------- Co-authored-by: Benjamin Pasero <Benjamin.Pasero@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
1f8d8e965a
commit
d4632bb740
@@ -7,7 +7,7 @@ import { Registry } from 'vs/platform/registry/common/platform';
|
||||
import { localize } from 'vs/nls';
|
||||
import { IConfigurationRegistry, Extensions as ConfigurationExtensions, ConfigurationScope } from 'vs/platform/configuration/common/configurationRegistry';
|
||||
import { isMacintosh, isWindows, isLinux, isWeb, isNative } from 'vs/base/common/platform';
|
||||
import { ConfigurationMigrationWorkbenchContribution, workbenchConfigurationNodeBase } from 'vs/workbench/common/configuration';
|
||||
import { ConfigurationMigrationWorkbenchContribution, securityConfigurationNodeBase, workbenchConfigurationNodeBase } from 'vs/workbench/common/configuration';
|
||||
import { isStandalone } from 'vs/base/browser/browser';
|
||||
import { IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions } from 'vs/workbench/common/contributions';
|
||||
import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle';
|
||||
@@ -685,4 +685,21 @@ const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Con
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Security
|
||||
registry.registerConfiguration({
|
||||
...securityConfigurationNodeBase,
|
||||
'properties': {
|
||||
'security.allowedUNCHosts': {
|
||||
'type': 'array',
|
||||
'items': {
|
||||
'type': 'string'
|
||||
},
|
||||
'default': [],
|
||||
'markdownDescription': localize('security.allowedUNCHosts', 'A set of UNC host names 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.'),
|
||||
'included': isWindows,
|
||||
'scope': ConfigurationScope.MACHINE
|
||||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user