Open inactive editors as sql editors when needed (#1298)

This commit is contained in:
Matt Irvine
2018-05-01 10:59:39 -07:00
committed by GitHub
parent a2e6aa9e64
commit 96657e300a

View File

@@ -225,6 +225,10 @@ export class EditorGroup implements IEditorGroup {
}
public openEditor(editor: EditorInput, options?: IEditorOpenOptions): void {
// {{SQL CARBON EDIT}}
// Convert input into custom type if it's one of the ones we support
editor = CustomInputConverter.convertEditorInput(editor, options, this.instantiationService);
const index = this.indexOf(editor);
const makePinned = options && options.pinned;