提交 275fb515 编写于 作者: S Sandeep Somavarapu

change missing deps to take only single dep

上级 58340b9a
......@@ -69,7 +69,7 @@ export class MainThreadExtensionService implements MainThreadExtensionServiceSha
if (typeof activationError === 'string') {
this._extensionService._logOrShowMessage(Severity.Error, activationError);
} else {
this._handleMissingDependency(extensionId, activationError.dependencies[0]);
this._handleMissingDependency(extensionId, activationError.dependency);
}
}
......
......@@ -7,7 +7,7 @@ import * as nls from 'vs/nls';
import { IDisposable } from 'vs/base/common/lifecycle';
import { ExtensionDescriptionRegistry } from 'vs/workbench/services/extensions/node/extensionDescriptionRegistry';
import { ExtensionIdentifier } from 'vs/platform/extensions/common/extensions';
import { ExtensionActivationError, MissingDependenciesError } from 'vs/workbench/services/extensions/common/extensions';
import { ExtensionActivationError, MissingDependencyError } from 'vs/workbench/services/extensions/common/extensions';
const NO_OP_VOID_PROMISE = Promise.resolve<void>(undefined);
......@@ -305,7 +305,7 @@ export class ExtensionsActivator {
}
// Error condition 1: unknown dependency
this._host.onExtensionActivationError(currentExtension.identifier, new MissingDependenciesError([depId]));
this._host.onExtensionActivationError(currentExtension.identifier, new MissingDependencyError(depId));
const error = new Error(`Unknown dependency '${depId}'`);
this._activatedExtensions.set(ExtensionIdentifier.toKey(currentExtension.identifier), new FailedExtension(error));
return;
......
......@@ -46,9 +46,9 @@ export interface IExtensionsStatus {
runtimeErrors: Error[];
}
export type ExtensionActivationError = string | MissingDependenciesError;
export class MissingDependenciesError {
constructor(readonly dependencies: string[]) { }
export type ExtensionActivationError = string | MissingDependencyError;
export class MissingDependencyError {
constructor(readonly dependency: string) { }
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册