hide the profiler commands meant for internal use (#3339)

This commit is contained in:
Alan Ren
2018-11-28 15:03:53 -08:00
committed by GitHub
parent 98af76b3ac
commit 421271acfa

View File

@@ -26,8 +26,7 @@
"Microsoft.mssql" "Microsoft.mssql"
], ],
"contributes": { "contributes": {
"commands": [ "commands": [{
{
"command": "profiler.newProfiler", "command": "profiler.newProfiler",
"title": "Launch Profiler", "title": "Launch Profiler",
"category": "Profiler" "category": "Profiler"
@@ -49,13 +48,23 @@
} }
], ],
"menus": { "menus": {
"objectExplorer/item/context": [ "commandPalette": [{
"command": "profiler.start",
"when": "False"
},
{ {
"command": "profiler.newProfiler", "command": "profiler.stop",
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server", "when": "False"
"group": "profiler" }, {
"command": "profiler.openCreateSessionDialog",
"when": "False"
} }
] ],
"objectExplorer/item/context": [{
"command": "profiler.newProfiler",
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server",
"group": "profiler"
}]
}, },
"outputChannels": [ "outputChannels": [
"sqlprofiler" "sqlprofiler"