nls.localize('scope.application.description',"Configuration that can be configured only in the user settings."),
nls.localize('scope.machine.description',"Configuration that can be configured only in the user settings when the extension is running locally, or only in the remote settings when the extension is running remotely."),
nls.localize('scope.window.description',"Configuration that can be configured in the user, remote or workspace settings."),
nls.localize('scope.resource.description',"Configuration that can be configured in the user, remote, workspace or folder settings."),
nls.localize('scope.resource-language.description',"Resource configuration that can be configured also in language specific settings."),
nls.localize('scope.machine-overridable.description',"Machine configuration that can be configured also in workspace or folder settings.")
],
description:nls.localize('scope.description',"Scope in which the configuration is applicable. Available scopes are `application`, `machine`, `window`, `resource` and `machine-overridable`.")
description:nls.localize('scope.description',"Scope in which the configuration is applicable. Available scopes are `application`, `machine`, `window`, `resource`, `resource-language` and `machine-overridable`.")
},
enumDescriptions:{
type:'array',
...
...
@@ -218,6 +219,8 @@ function validateProperties(configuration: IConfigurationNode, extension: IExten
* Error when trying to write to language specific setting but not supported for preovided key
*/
ERROR_INVALID_RESOURCE_LANGUAGE_CONFIGURATION,
/**
* Error when trying to write to the workspace configuration without having a workspace opened.
*/
...
...
@@ -304,6 +309,7 @@ export class ConfigurationEditingService {
caseConfigurationEditingErrorCode.ERROR_INVALID_USER_TARGET:returnnls.localize('errorInvalidUserTarget',"Unable to write to User Settings because {0} does not support for global scope.",operation.key);
caseConfigurationEditingErrorCode.ERROR_INVALID_WORKSPACE_TARGET:returnnls.localize('errorInvalidWorkspaceTarget',"Unable to write to Workspace Settings because {0} does not support for workspace scope in a multi folder workspace.",operation.key);
caseConfigurationEditingErrorCode.ERROR_INVALID_FOLDER_TARGET:returnnls.localize('errorInvalidFolderTarget',"Unable to write to Folder Settings because no resource is provided.");
caseConfigurationEditingErrorCode.ERROR_INVALID_RESOURCE_LANGUAGE_CONFIGURATION:returnnls.localize('errorInvalidResourceLanguageConfiguraiton',"Unable to write to Language Settings because {0} is not a resource language setting.",operation.key);
caseConfigurationEditingErrorCode.ERROR_NO_WORKSPACE_OPENED:returnnls.localize('errorNoWorkspaceOpened',"Unable to write to {0} because no workspace is opened. Please open a workspace first and try again.",this.stringifyTarget(target));
// User issues
...
...
@@ -460,6 +466,13 @@ export class ConfigurationEditingService {