Fix delete DocDB stored procedure (#2264)
This commit is contained in:
Родитель
a98e2047f8
Коммит
4a3d14de9d
|
@ -12,7 +12,6 @@ export async function deleteDocDBStoredProcedure(context: IActionContext, node?:
|
|||
suppressCreateContext.suppressCreatePick = true;
|
||||
if (!node) {
|
||||
node = await pickDocDBAccount<DocDBStoredProcedureTreeItem>(context, DocDBStoredProcedureTreeItem.contextValue);
|
||||
|
||||
}
|
||||
await node.deleteTreeItem(context);
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ import { createDocDBTrigger } from "./commands/createDocDBTrigger";
|
|||
import { deleteDocDBCollection } from "./commands/deleteDocDBCollection";
|
||||
import { deleteDocDBDatabase } from "./commands/deleteDocDBDatabase";
|
||||
import { deleteDocDBDocument } from "./commands/deleteDocDBDocument";
|
||||
import { deleteDocDBStoredProcedure } from "./commands/deleteDocDBStoredProcedure";
|
||||
import { deleteDocDBTrigger } from "./commands/deleteDocDBTrigger";
|
||||
import { executeDocDBStoredProcedure } from "./commands/executeDocDBStoredProcedure";
|
||||
import { executeNoSqlQuery } from "./commands/executeNoSqlQuery";
|
||||
|
@ -78,7 +79,7 @@ export function registerDocDBCommands(): void {
|
|||
// #region StoredProcedure command
|
||||
|
||||
registerCommandWithTreeNodeUnwrapping('cosmosDB.openStoredProcedure', openStoredProcedure, doubleClickDebounceDelay);
|
||||
registerCommandWithTreeNodeUnwrapping('cosmosDB.deleteDocDBStoredProcedure', deleteDocDBCollection);
|
||||
registerCommandWithTreeNodeUnwrapping('cosmosDB.deleteDocDBStoredProcedure', deleteDocDBStoredProcedure);
|
||||
registerCommandWithTreeNodeUnwrapping('cosmosDB.executeDocDBStoredProcedure', executeDocDBStoredProcedure);
|
||||
|
||||
// #endregion
|
||||
|
|
|
@ -18,7 +18,6 @@ import { DocDBTreeItemBase } from './DocDBTreeItemBase';
|
|||
* This class represents the DocumentDB "Stored Procedures" node in the tree
|
||||
*/
|
||||
export class DocDBStoredProceduresTreeItem extends DocDBTreeItemBase<StoredProcedureDefinition> {
|
||||
|
||||
public static contextValue: string = "cosmosDBStoredProceduresGroup";
|
||||
public readonly contextValue: string = DocDBStoredProceduresTreeItem.contextValue;
|
||||
public readonly childTypeLabel: string = "Stored Procedure";
|
||||
|
|
Загрузка…
Ссылка в новой задаче