@@ -309,7 +309,7 @@ export class DebugService implements IDebugService {
}));
}
if(configOrName&&!config){
constmessage=!!launch?nls.localize('configMissing',"Configuration '{0}' is missing in 'launch.json'.",configOrName):
constmessage=!!launch?nls.localize('configMissing',"Configuration '{0}' is missing in 'launch.json'.",typeofconfigOrName==='string'?configOrName:JSON.stringify(configOrName)):
nls.localize('launchJsonDoesNotExist',"'launch.json' does not exist.");
returnTPromise.wrapError(newError(message));
}
...
...
@@ -746,7 +746,7 @@ export class DebugService implements IDebugService {
if(!taskStarted){
consterrorMessage=typeoftaskId==='string'
?nls.localize('taskNotTrackedWithTaskId',"The specified task cannot be tracked.")
:nls.localize('taskNotTracked',"The task '{0}' cannot be tracked.",taskId);
:nls.localize('taskNotTracked',"The task '{0}' cannot be tracked.",JSON.stringify(taskId));
context.problemReporter.error(nls.localize('ConfigurationParser.inValidArg','Error: command argument must either be a string or a quoted string. Provided value is:\n{0}',context.problemReporter.error(nls.localize('ConfigurationParser.noargs','Error: command arguments must be an array of strings. Provided value is:\n{0}',arg?JSON.stringify(arg,undefined,4):'undefined'))));
context.problemReporter.error(
nls.localize(
'ConfigurationParser.inValidArg',
'Error: command argument must either be a string or a quoted string. Provided value is:\n{0}',
collector.warn(nls.localize('invalid.path.1',"Expected `contributes.{0}.url` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",configurationExtPoint.name,location,extensionLocation.path));
collector.warn(nls.localize('invalid.path.1',"Expected `contributes.{0}.url` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",configurationExtPoint.name,colorThemeLocation.toString(),extensionLocation.path));
}
}catch(e){
collector.error(nls.localize('invalid.url.fileschema',"'configuration.jsonValidation.url' is an invalid relative URL: {0}",e.message));
@@ -293,7 +293,7 @@ function _loadColorTheme(fileService: IFileService, themeLocation: URI, resultRu
letcolors=contentValue.colors;
if(colors){
if(typeofcolors!=='object'){
returnTPromise.wrapError(newError(nls.localize({key:'error.invalidformat.colors',comment:['{0} will be replaced by a path. Values in quotes should not be translated.']},"Problem parsing color theme file: {0}. Property 'colors' is not of type 'object'.",themeLocation)));
returnTPromise.wrapError(newError(nls.localize({key:'error.invalidformat.colors',comment:['{0} will be replaced by a path. Values in quotes should not be translated.']},"Problem parsing color theme file: {0}. Property 'colors' is not of type 'object'.",themeLocation.toString())));
}
// new JSON color themes format
for(letcolorIdincolors){
...
...
@@ -311,7 +311,7 @@ function _loadColorTheme(fileService: IFileService, themeLocation: URI, resultRu
returnTPromise.wrapError(newError(nls.localize({key:'error.invalidformat.tokenColors',comment:['{0} will be replaced by a path. Values in quotes should not be translated.']},"Problem parsing color theme file: {0}. Property 'tokenColors' should be either an array specifying colors or a path to a TextMate theme file",themeLocation)));
returnTPromise.wrapError(newError(nls.localize({key:'error.invalidformat.tokenColors',comment:['{0} will be replaced by a path. Values in quotes should not be translated.']},"Problem parsing color theme file: {0}. Property 'tokenColors' should be either an array specifying colors or a path to a TextMate theme file",themeLocation.toString())));
}
}
returnnull;
...
...
@@ -343,7 +343,7 @@ function _loadSyntaxTokens(fileService: IFileService, themeLocation: URI, result
@@ -294,7 +294,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
this.updateDynamicCSSRules(themeData);
returnthis.applyTheme(themeData,settingsTarget);
},error=>{
returnTPromise.wrapError<IColorTheme>(newError(nls.localize('error.cannotloadtheme',"Unable to load {0}: {1}",themeData.location,error.message)));
returnTPromise.wrapError<IColorTheme>(newError(nls.localize('error.cannotloadtheme',"Unable to load {0}: {1}",themeData.location.toString(),error.message)));