returnthis.queue.queue(()=>this.doWriteConfiguration(target,value,save));// queue up writes to prevent race conditions
returnthis.queue.queue(()=>this.doWriteConfiguration(target,value,save).then(()=>null,error=>this.onError(error,target)));// queue up writes to prevent race conditions
@@ -110,20 +125,20 @@ export class ConfigurationEditingService implements IConfigurationEditingService
caseConfigurationEditingErrorCode.ERROR_INVALID_TARGET:returnnls.localize('errorInvalidTarget',"Unable to write to the configuration file (Invalid Target)");
// User issues
caseConfigurationEditingErrorCode.ERROR_NO_WORKSPACE_OPENED:returnnls.localize('errorNoWorkspaceOpened',"Unable to write settings because no folder is opened. Please open a folder first and try again.");
caseConfigurationEditingErrorCode.ERROR_NO_WORKSPACE_OPENED:returnnls.localize('errorNoWorkspaceOpened',"Unable to write into settings because no folder is opened. Please open a folder first and try again.");
returnnls.localize('errorInvalidConfiguration',"Unable to write settings. Please open **User Settings** to correct errors/warnings in the file and try again.");
returnnls.localize('errorInvalidConfiguration',"Unable to write into settings. Please open **User Settings** to correct errors/warnings in the file and try again.");
}
returnnls.localize('errorInvalidConfigurationWorkspace',"Unable to write settings. Please open **Workspace Settings** to correct errors/warnings in the file and try again.");
returnnls.localize('errorInvalidConfigurationWorkspace',"Unable to write into settings. Please open **Workspace Settings** to correct errors/warnings in the file and try again.");
returnnls.localize('errorConfigurationFileDirty',"Unable to write settings because the file is dirty. Please save the **User Settings** file and try again.");
returnnls.localize('errorConfigurationFileDirty',"Unable to write into settings because the file is dirty. Please save the **User Settings** file and try again.");
}
returnnls.localize('errorConfigurationFileDirtyWorkspace',"Unable to write settings because the file is dirty. Please save the **Workspace Settings** file and try again.");
returnnls.localize('errorConfigurationFileDirtyWorkspace',"Unable to write into settings because the file is dirty. Please save the **Workspace Settings** file and try again.");