mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 17:52:34 -05:00
Merge from vscode 2b0b9136329c181a9e381463a1f7dc3a2d105a34 (#4880)
This commit is contained in:
@@ -16,7 +16,7 @@ export interface IEditorDescriptor {
|
||||
getId(): string;
|
||||
getName(): string;
|
||||
|
||||
describes(obj: any): boolean;
|
||||
describes(obj: unknown): boolean;
|
||||
}
|
||||
|
||||
export interface IEditorRegistry {
|
||||
@@ -76,7 +76,7 @@ export class EditorDescriptor implements IEditorDescriptor {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
describes(obj: any): boolean {
|
||||
describes(obj: unknown): boolean {
|
||||
return obj instanceof BaseEditor && (<BaseEditor>obj).getId() === this.id;
|
||||
}
|
||||
}
|
||||
@@ -88,7 +88,7 @@ class EditorRegistry implements IEditorRegistry {
|
||||
|
||||
registerEditor(descriptor: EditorDescriptor, editorInputDescriptor: SyncDescriptor<EditorInput>): void;
|
||||
registerEditor(descriptor: EditorDescriptor, editorInputDescriptor: SyncDescriptor<EditorInput>[]): void;
|
||||
registerEditor(descriptor: EditorDescriptor, editorInputDescriptor: any): void {
|
||||
registerEditor(descriptor: EditorDescriptor, editorInputDescriptor: SyncDescriptor<EditorInput> | SyncDescriptor<EditorInput>[]): void {
|
||||
|
||||
// Support both non-array and array parameter
|
||||
let inputDescriptors: SyncDescriptor<EditorInput>[] = [];
|
||||
|
||||
Reference in New Issue
Block a user