constaskLater:MessageItem={title:localize('not now',"Ask Me Later")};
constresult=awaitwindow.showInformationMessage(localize('suggest auto fetch',"Would you like Code to periodically run `git fetch`?"),yes,readMore,no,askLater);
constresult=awaitwindow.showInformationMessage(localize('suggest auto fetch',"Would you like Code to periodically run 'git fetch'?"),yes,readMore,no,askLater);
notificationService.info(nls.localize('no.provider',"Sorry, but there is no formatter for '{0}'-files installed.",editor.getModel().getLanguageIdentifier().language));
notificationService.info(nls.localize('no.provider',"There is no formatter for '{0}'-files installed.",editor.getModel().getLanguageIdentifier().language));
this._host.showMessage(Severity.Error,nls.localize('failedDep2',"Extension `{0}` failed to activate. Reason: more than 10 levels of dependencies (most likely a dependency loop).",extensionDescriptions[i].id));
this._host.showMessage(Severity.Error,nls.localize('failedDep2',"Extension '{0}' failed to activate. Reason: more than 10 levels of dependencies (most likely a dependency loop).",extensionDescriptions[i].id));
thrownewError(localize('duplicateId',"A view with id `{0}` is already registered in the location `{1}`",viewDescriptor.id,viewDescriptor.location.id));
thrownewError(localize('duplicateId',"A view with id '{0}' is already registered in the location '{1}'",viewDescriptor.id,viewDescriptor.location.id));
@@ -708,7 +708,7 @@ export class DebugService implements debug.IDebugService {
launchForName=launch;
}else{
returnTPromise.wrapError(newError(launchesContainingName.length===0?nls.localize('noConfigurationNameInWorkspace',"Could not find launch configuration '{0}' in the workspace.",name)
:nls.localize('multipleConfigurationNamesInWorkspace',"There are multiple launch configurations `{0}` in the workspace. Use folder name to qualify the configuration.",name)));
:nls.localize('multipleConfigurationNamesInWorkspace',"There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",name)));
message=config.request?nls.localize('debugRequestNotSupported',"Attribute `{0}` has an unsupported value '{1}' in the chosen debug configuration.",'request',config.request)
message=config.request?nls.localize('debugRequestNotSupported',"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",'request',config.request)
:nls.localize('debugRequesMissing',"Attribute '{0}' is missing from the chosen debug configuration.",'request');
}else{
message=resolvedConfig.type?nls.localize('debugTypeNotSupported',"Configured debug type '{0}' is not supported.",resolvedConfig.type):
nls.localize('debugTypeMissing',"Missing property `type` for the chosen launch configuration.");
nls.localize('debugTypeMissing',"Missing property 'type' for the chosen launch configuration.");
constconflictEditorHelp=nls.localize('userGuide',"Use the actions in the editor tool bar to either **undo** your changes or **overwrite** the content on disk with your changes");
constconflictEditorHelp=nls.localize('userGuide',"Use the actions in the editor tool bar to either undo your changes or overwrite the content on disk with your changes");
// A handler for save error happening with conflict resolution actions
message=nls.localize('staleSaveError',"Failed to save '{0}': The content on disk is newer. Click on **Compare** to compare your version with the one on disk.",paths.basename(resource.fsPath));
message=nls.localize('staleSaveError',"Failed to save '{0}': The content on disk is newer. Please compare your version with the one on disk.",paths.basename(resource.fsPath));
this.notificationService.error(typeoferror==='string'?error:localize('error',"Error '{0}' while editing keybinding. Please open 'keybindings.json' file and check.",`${error}`));
this.notificationService.error(typeoferror==='string'?error:localize('error',"Error '{0}' while editing the keybinding. Please open 'keybindings.json' file and check for errors.",`${error}`));
@@ -1148,9 +1148,9 @@ class TaskService implements ITaskService {
letactive=executeResult.active;
if(active.same){
if(active.background){
this.notificationService.info(nls.localize('TaskSystem.activeSame.background','The task \'{0}\' is already active and in background mode. To terminate it use `Terminate Task...` from the Tasks menu.',Task.getQualifiedLabel(task)));
this.notificationService.info(nls.localize('TaskSystem.activeSame.background','The task \'{0}\' is already active and in background mode. To terminate it use \'Terminate Task...\' from the Tasks menu.',Task.getQualifiedLabel(task)));
}else{
this.notificationService.info(nls.localize('TaskSystem.activeSame.noBackground','The task \'{0}\' is already active. To terminate it use `Terminate Task...` from the Tasks menu.',Task.getQualifiedLabel(task)));
this.notificationService.info(nls.localize('TaskSystem.activeSame.noBackground','The task \'{0}\' is already active. To terminate it use \'Terminate Task...\' from the Tasks menu.',Task.getQualifiedLabel(task)));
}
}else{
thrownewTaskError(Severity.Warning,nls.localize('TaskSystem.active','There is already a task running. Terminate it first before executing another task.'),TaskErrors.RunningTask);
returnnls.localize('errorInvalidTaskConfiguration',"Unable to write into tasks file. Please open **Tasks** file to correct errors/warnings in it and try again.");
returnnls.localize('errorInvalidTaskConfiguration',"Unable to write into the tasks configuration file. Please open it to correct errors/warnings in it 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.");
returnnls.localize('errorInvalidLaunchConfiguration',"Unable to write into the launch configuration file. Please open it 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.");
returnnls.localize('errorInvalidConfiguration',"Unable to write into user settings. Please open the user settings 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('errorInvalidConfigurationWorkspace',"Unable to write into workspace settings. Please open the workspace settings 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('errorInvalidConfigurationFolder',"Unable to write into folder settings. Please open the '{0}' folder settings to correct errors/warnings in it and try again.",workspaceFolderName);
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('errorTasksConfigurationFileDirty',"Unable to write into tasks configuration file because the file is dirty. Please save it first and then 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.");
returnnls.localize('errorLaunchConfigurationFileDirty',"Unable to write into launch configuration file because the file is dirty. Please save it first and then 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.");
returnnls.localize('errorConfigurationFileDirty',"Unable to write into user settings because the file is dirty. Please save the user settings file first and then 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('errorConfigurationFileDirtyWorkspace',"Unable to write into workspace settings because the file is dirty. Please save the workspace settings file first and then 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);
returnnls.localize('errorConfigurationFileDirtyFolder',"Unable to write into folder settings because the file is dirty. Please save the '{0}' folder settings file first and then try again.",workspaceFolderName);
// handle extension host lifecycle a bit special when we know we are developing an extension that runs inside
...
...
@@ -236,7 +238,11 @@ export class ExtensionHostProcessWorker {
?nls.localize('extensionHostProcess.startupFailDebug',"Extension host did not start in 10 seconds, it might be stopped on the first line and needs a debugger to continue.")
:nls.localize('extensionHostProcess.startupFail',"Extension host did not start in 10 seconds, that might be a problem.");
// Target cannot be dirty if not writing into buffer
if(this.textFileService.isDirty(this.resource)){
returnTPromise.wrapError<IReference<ITextEditorModel>>(newError(localize('errorKeybindingsFileDirty',"Unable to write because the file is dirty. Please save the **Keybindings** file and try again.")));
returnTPromise.wrapError<IReference<ITextEditorModel>>(newError(localize('errorKeybindingsFileDirty',"Unable to write because the keybindings configuration file is dirty. Please save it first and then try again.")));
returnTPromise.wrapError<IReference<ITextEditorModel>>(newError(localize('parseErrors',"Unable to write keybindings. Please open **Keybindings file** to correct errors/warnings in the file and try again.")));
returnTPromise.wrapError<IReference<ITextEditorModel>>(newError(localize('parseErrors',"Unable to write to the keybindings configuration file. Please open it to correct errors/warnings in the file and try again.")));
}
if(parsed.result){
if(!isArray(parsed.result)){
returnTPromise.wrapError<IReference<ITextEditorModel>>(newError(localize('errorInvalidConfiguration',"Unable to write keybindings. **Keybindings file** has an object which is not of type Array. Please open the file to clean up and try again.")));
returnTPromise.wrapError<IReference<ITextEditorModel>>(newError(localize('errorInvalidConfiguration',"Unable to write to the keybindings configuration file. It has an object which is not of type Array. Please open the file to clean up and try again.")));