table designer editor icon (#17608)

* icon for table designer

* use more specific name

* use sql defined schema
This commit is contained in:
Alan Ren
2021-11-05 16:26:17 -07:00
committed by GitHub
parent b4d72af3d4
commit 5f8e1f384f
4 changed files with 23 additions and 3 deletions

View File

@@ -4,8 +4,8 @@
*--------------------------------------------------------------------------------------------*/
import { localize } from 'vs/nls';
import { URI } from 'vs/base/common/uri';
import { EditorInput } from 'vs/workbench/common/editor/editorInput';
import { URI } from 'vs/workbench/workbench.web.api';
import { TableDesignerComponentInput } from 'sql/workbench/services/tableDesigner/browser/tableDesignerComponentInput';
import { TableDesignerProvider } from 'sql/workbench/services/tableDesigner/common/interface';
import * as azdata from 'azdata';
@@ -13,6 +13,7 @@ import { GroupIdentifier, IEditorInput, IRevertOptions, ISaveOptions } from 'vs/
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
import { onUnexpectedError } from 'vs/base/common/errors';
import { Schemas } from 'sql/base/common/schemas';
const NewTable: string = localize('tableDesigner.newTable', "New Table");
@@ -52,8 +53,11 @@ export class TableDesignerInput extends EditorInput {
return TableDesignerInput.ID;
}
get resource(): URI {
return undefined;
public get resource(): URI {
return URI.from({
scheme: Schemas.tableDesigner,
path: 'table-designer'
});
}
public getComponentInput(): TableDesignerComponentInput {