console.info(`Extension '${extension.id}' uses a document selector without scheme. Learn more about this: https://go.microsoft.com/fwlink/?linkid=872305`);
console.info(`Extension '${extension.identifier.value}' uses a document selector without scheme. Learn more about this: https://go.microsoft.com/fwlink/?linkid=872305`);
done=true;
}
}
...
...
@@ -180,7 +181,7 @@ export function createApiFactory(
constinformOnce=()=>{
if(!done){
done=true;
console.warn(`Extension '${extension.id}' uses the 'vscode.previewHtml' command which is deprecated and will be removed. Please update your extension to use the Webview API: https://go.microsoft.com/fwlink/?linkid=2039309`);
console.warn(`Extension '${extension.identifier.value}' uses the 'vscode.previewHtml' command which is deprecated and will be removed. Please update your extension to use the Webview API: https://go.microsoft.com/fwlink/?linkid=2039309`);
}
};
return(commandId:string)=>{
...
...
@@ -310,7 +311,7 @@ export function createApiFactory(
console.warn(`Could not identify extension for 'vscode' require call from ${parent.filename}. These are the extension path mappings: \n${extensionPathsPretty}`);
console.warn(`${extensionIdText}Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '${key}', provide the URI of a resource or 'null' for any resource.`);
this._logService.info(`onWillSaveTextDocument-listener from extension '${extension.id}' will now be IGNORED because of timeouts and/or errors`);
this._logService.info(`onWillSaveTextDocument-listener from extension '${extension.identifier.value}' will now be IGNORED because of timeouts and/or errors`);
}
}
returnfalse;
...
...
@@ -132,7 +132,7 @@ export class ExtHostDocumentSaveParticipant implements ExtHostDocumentSavePartic
thrownewError('Extension `'+extensionId+'` is not known');
...
...
@@ -251,31 +255,31 @@ export class ExtensionsActivator {
if(!depDesc){
// Error condition 1: unknown dependency
this._host.showMessage(Severity.Error,nls.localize('unknownDep',"Cannot activate extension '{0}' as the depending extension '{1}' is not found. Please install or enable the depending extension and reload the window.",currentExtension.displayName||currentExtension.id,depId));
this._host.showMessage(Severity.Error,nls.localize('unknownDep',"Cannot activate extension '{0}' as the depending extension '{1}' is not found. Please install or enable the depending extension and reload the window.",currentExtension.displayName||currentExtension.identifier.value,depId));
// Error condition 2: a dependency has already failed activation
this._host.showMessage(Severity.Error,nls.localize('failedDep1',"Cannot activate extension '{0}' as the depending extension '{1}' is failed to activate.",currentExtension.displayName||currentExtension.id,depId));
this._host.showMessage(Severity.Error,nls.localize('failedDep1',"Cannot activate extension '{0}' as the depending extension '{1}' is failed to activate.",currentExtension.displayName||currentExtension.identifier.value,depId));
consterror=newError(`Dependency ${depId} failed to activate`);
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].identifier.value));
consterror=newError('More than 10 levels of dependencies (most likely a dependency loop)');
this._logService.warn(`${this._extensionId} - Code actions of kind '${codeActionContext.only.value} 'requested but returned code action does not have a 'kind'. Code action will be dropped. Please set 'CodeAction.kind'.`);
this._logService.warn(`${this._extensionId.value} - Code actions of kind '${codeActionContext.only.value} 'requested but returned code action does not have a 'kind'. Code action will be dropped. Please set 'CodeAction.kind'.`);
this._logService.warn(`${this._extensionId} -Code actions of kind '${codeActionContext.only.value} 'requested but returned code action is of kind '${candidate.kind.value}'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.`);
this._logService.warn(`${this._extensionId.value} -Code actions of kind '${codeActionContext.only.value} 'requested but returned code action is of kind '${candidate.kind.value}'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.`);
}
}
...
...
@@ -975,14 +976,14 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
@@ -178,7 +179,7 @@ export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
getvalidateInput():IValidateInput{
if(!this._extension.enableProposedApi){
thrownewError(`[${this._extension.id}]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ${this._extension.id}`);
thrownewError(`[${this._extension.identifier.value}]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ${this._extension.identifier.value}`);
}
returnthis._validateInput;
...
...
@@ -186,7 +187,7 @@ export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
setvalidateInput(fn:IValidateInput){
if(!this._extension.enableProposedApi){
thrownewError(`[${this._extension.id}]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ${this._extension.id}`);
thrownewError(`[${this._extension.identifier.value}]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ${this._extension.identifier.value}`);
}
if(fn&&typeoffn!=='function'){
...
...
@@ -584,24 +585,24 @@ export class ExtHostSCM implements ExtHostSCMShape {
thrownewError(`[${extension.id}]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ${extension.id}`);
thrownewError(`[${extension.identifier.value}]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ${extension.identifier.value}`);
log.warn(systemExtension.extensionLocation.fsPath,nls.localize('overwritingExtension',"Overwriting extension {0} with {1}.",result.get(extensionKey).extensionLocation.fsPath,systemExtension.extensionLocation.fsPath));
}
result.set(extensionKey,systemExtension);
});
user.forEach((userExtension)=>{
if(result.hasOwnProperty(userExtension.id)){
log.warn(userExtension.extensionLocation.fsPath,nls.localize('overwritingExtension',"Overwriting extension {0} with {1}.",result[userExtension.id].extensionLocation.fsPath,userExtension.extensionLocation.fsPath));
log.warn(userExtension.extensionLocation.fsPath,nls.localize('overwritingExtension',"Overwriting extension {0} with {1}.",result.get(extensionKey).extensionLocation.fsPath,userExtension.extensionLocation.fsPath));
}
result[userExtension.id]=userExtension;
result.set(extensionKey,userExtension);
});
development.forEach(developedExtension=>{
log.info('',nls.localize('extensionUnderDevelopment',"Loading development extension at {0}",developedExtension.extensionLocation.fsPath));
if(result.hasOwnProperty(developedExtension.id)){
log.warn(developedExtension.extensionLocation.fsPath,nls.localize('overwritingExtension',"Overwriting extension {0} with {1}.",result[developedExtension.id].extensionLocation.fsPath,developedExtension.extensionLocation.fsPath));
log.warn(developedExtension.extensionLocation.fsPath,nls.localize('overwritingExtension',"Overwriting extension {0} with {1}.",result.get(extensionKey).extensionLocation.fsPath,developedExtension.extensionLocation.fsPath));