ServerInfoContextKey instead of MssqlNodeContextKey for OE items (#20563)

* ServerInfoContextKey instead of MssqlNodeContextKey for OE items

* add comment
This commit is contained in:
Charles Gagnon
2022-09-08 09:32:20 -07:00
committed by GitHub
parent 08d639438f
commit 649c98c016
2 changed files with 10 additions and 3 deletions

View File

@@ -20,6 +20,12 @@ export interface INodeContextValue {
viewId: string;
}
/**
* This context key is for Data Explorer nodes only - it is not used for Object Explorer nodes. For that use
* [treeNodeContextKey](https://github.com/Microsoft/azuredatastudio/blob/main/src/sql/workbench/services/objectExplorer/common/treeNodeContextKey.ts),
* [connectionContextKey](https://github.com/Microsoft/azuredatastudio/blob/main/src/sql/workbench/services/connection/common/connectionContextKey.ts) or
* [serverInfoContextKey](https://github.com/Microsoft/azuredatastudio/blob/main/src/sql/workbench/services/connection/common/serverInfoContextKey.ts)
*/
export class MssqlNodeContext extends Disposable {
static readonly canSelect = new Set([NodeType.Table, NodeType.View]);