提交 13e25f77 编写于 作者: B Benjamin Pasero

💄 ExtensionsInput

上级 b461f64d
......@@ -12,7 +12,6 @@ import { IExtension } from 'vs/workbench/contrib/extensions/common/extensions';
export class ExtensionsInput extends EditorInput {
static readonly ID = 'workbench.extensions.input2';
get extension(): IExtension { return this._extension; }
get resource() {
return URI.from({
......@@ -22,7 +21,7 @@ export class ExtensionsInput extends EditorInput {
}
constructor(
private readonly _extension: IExtension
public readonly extension: IExtension
) {
super();
}
......@@ -35,6 +34,14 @@ export class ExtensionsInput extends EditorInput {
return localize('extensionsInputName', "Extension: {0}", this.extension.displayName);
}
async resolve(): Promise<null> {
return null;
}
supportsSplitEditor(): boolean {
return false;
}
matches(other: unknown): boolean {
if (super.matches(other) === true) {
return true;
......@@ -49,12 +56,4 @@ export class ExtensionsInput extends EditorInput {
// TODO@joao is this correct?
return this.extension === otherExtensionInput.extension;
}
resolve(): Promise<any> {
return Promise.resolve(null);
}
supportsSplitEditor(): boolean {
return false;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册