this.choiceService.choose(Severity.Error,error.message,[nls.localize('saveAndRetry',"Save Settings and Retry"),nls.localize('open',"Open Settings"),nls.localize('close',"Close")],2)
this.choiceService.choose(Severity.Error,error.message,[nls.localize('saveAndRetry',"Save and Retry"),openStandAloneConfigurationActionLabel,nls.localize('close',"Close")],2)
this.choiceService.choose(Severity.Error,error.message,[nls.localize('saveAndRetry',"Save and Retry"),nls.localize('open',"Open Settings"),nls.localize('close',"Close")],2)
returnnls.localize('errorInvalidConfiguration',"Unable to write into settings. Please open **User Settings** to correct errors/warnings in the file and try again.");
returnnls.localize('errorInvalidTaskConfiguration',"Unable to write into tasks file. Please open **Tasks** file to correct errors/warnings in it 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('errorInvalidLaunchConfiguration',"Unable to write into launch file. Please open **Launch** file to correct errors/warnings in it and try again.");
}
switch(target){
caseConfigurationTarget.USER:
returnnls.localize('errorInvalidConfiguration',"Unable to write into user settings. Please open **User Settings** file to correct errors/warnings in it and try again.");
caseConfigurationTarget.WORKSPACE:
returnnls.localize('errorInvalidConfigurationWorkspace',"Unable to write into workspace settings. Please open **Workspace Settings** file to correct errors/warnings in the file and try again.");
returnnls.localize('errorInvalidConfigurationFolder',"Unable to write into folder settings. Please open **Folder Settings** file under **{0}** folder to correct errors/warnings in it and try again.",workspaceFolderName);
returnnls.localize('errorConfigurationFileDirty',"Unable to write into settings because the file is dirty. Please save the **User Settings** file and try again.");
returnnls.localize('errorTasksConfigurationFileDirty',"Unable to write into tasks file because the file is dirty. Please save the **Tasks Configuration** 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.");
returnnls.localize('errorLaunchConfigurationFileDirty',"Unable to write into launch file because the file is dirty. Please save the **Launch Configuration** file and try again.");
}
switch(target){
caseConfigurationTarget.USER:
returnnls.localize('errorConfigurationFileDirty',"Unable to write into user settings because the file is dirty. Please save the **User Settings** file and try again.");
caseConfigurationTarget.WORKSPACE:
returnnls.localize('errorConfigurationFileDirtyWorkspace',"Unable to write into workspace settings because the file is dirty. Please save the **Workspace Settings** file and try again.");
returnnls.localize('errorConfigurationFileDirtyFolder',"Unable to write into folder settings because the file is dirty. Please save the **Folder Settings** file under **{0}** folder and try again.",workspaceFolderName);
}
return'';
};
};
}
}
}
}
...
@@ -227,7 +304,7 @@ export class ConfigurationEditingService implements IConfigurationEditingService
...
@@ -227,7 +304,7 @@ export class ConfigurationEditingService implements IConfigurationEditingService