mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
Add convert to SDK style project to context menu (#18847)
* differentiate between sdk and legacy style projects in tree * switch to legacy * add to context menu * add function call
This commit is contained in:
@@ -47,7 +47,7 @@ export class ProjectRootTreeItem extends BaseProjectTreeItem {
|
||||
|
||||
public get treeItem(): vscode.TreeItem {
|
||||
const projectItem = new vscode.TreeItem(this.fileSystemUri, vscode.TreeItemCollapsibleState.Expanded);
|
||||
projectItem.contextValue = DatabaseProjectItemType.project;
|
||||
projectItem.contextValue = this.project.isSdkStyleProject ? DatabaseProjectItemType.project : DatabaseProjectItemType.legacyProject;
|
||||
projectItem.iconPath = IconPathHelper.databaseProject;
|
||||
projectItem.label = path.basename(this.projectUri.fsPath, sqlprojExtension);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user