mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
More changes for #81574
This commit is contained in:
@@ -307,7 +307,7 @@ export function registerEditorContribution<Services extends BrandedService[]>(id
|
||||
EditorContributionRegistry.INSTANCE.registerEditorContribution(id, ctor);
|
||||
}
|
||||
|
||||
export function registerDiffEditorContribution(id: string, ctor: IDiffEditorContributionCtor): void {
|
||||
export function registerDiffEditorContribution<Services extends BrandedService[]>(id: string, ctor: { new(editor: IDiffEditor, ...services: Services): IEditorContribution }): void {
|
||||
EditorContributionRegistry.INSTANCE.registerDiffEditorContribution(id, ctor);
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ class EditorContributionRegistry {
|
||||
return this.editorContributions.slice(0);
|
||||
}
|
||||
|
||||
public registerDiffEditorContribution(id: string, ctor: IDiffEditorContributionCtor): void {
|
||||
public registerDiffEditorContribution<Services extends BrandedService[]>(id: string, ctor: { new(editor: IDiffEditor, ...services: Services): IEditorContribution }): void {
|
||||
this.diffEditorContributions.push({ id, ctor });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user