Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 14 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,19 @@
"onLanguage:python",
"onDebugDynamicConfigurations:python",
"onDebugResolve:python",
"onCommand:python.execInTerminal",
"onCommand:python.debugInTerminal",
"onCommand:python.sortImports",
"onCommand:python.setInterpreter",
"onCommand:python.setShebangInterpreter",
"onCommand:python.viewLanguageServerOutput",
"onCommand:python.viewOutput",
"onCommand:python.execSelectionInTerminal",
"onCommand:python.execSelectionInDjangoShell",
"onCommand:python.startREPL",
"onCommand:python.goToPythonObject",
"onCommand:python.reportIssue",
"onCommand:python.setLinter",
"onCommand:python.enableLinting",
"onCommand:python.createTerminal",
"onCommand:python.configureTests",
"onCommand:python.clearWorkspaceInterpreter",
"onCommand:python.enableSourceMapSupport",
"onCommand:python.launchTensorBoard",
"onCommand:python.clearCacheAndReload",
"onCommand:python.createEnvironment",
"onCommand:python.createNewFile",
"onCommand:python.refreshTensorBoard",
"onCommand:testing.reRunFailTests",
"onWalkthrough:pythonWelcome",
"onWalkthrough:pythonWelcomeWithEnv",
"onWalkthrough:pythonWelcomeWithDS",
Expand Down Expand Up @@ -1614,7 +1605,7 @@
"category": "Python",
"command": "python.analysis.restartLanguageServer",
"title": "%python.command.python.analysis.restartLanguageServer.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
Expand All @@ -1626,7 +1617,7 @@
"category": "Python",
"command": "python.clearWorkspaceInterpreter",
"title": "%python.command.python.clearWorkspaceInterpreter.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
Expand All @@ -1650,7 +1641,7 @@
"category": "Python",
"command": "python.enableLinting",
"title": "%python.command.python.enableLinting.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
Expand All @@ -1662,33 +1653,33 @@
"category": "Python",
"command": "python.execInTerminal",
"title": "%python.command.python.execInTerminal.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
"command": "python.execInTerminal-icon",
"icon": "$(play)",
"title": "%python.command.python.execInTerminalIcon.title%",
"when": "false"
"when": "false && editorLangId == python"
},
{
"category": "Python",
"command": "python.debugInTerminal",
"icon": "$(debug-alt)",
"title": "%python.command.python.debugInTerminal.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
"command": "python.execSelectionInDjangoShell",
"title": "%python.command.python.execSelectionInDjangoShell.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
"command": "python.execSelectionInTerminal",
"title": "%python.command.python.execSelectionInTerminal.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
Expand All @@ -1708,7 +1699,7 @@
"category": "Python",
"command": "python.reportIssue",
"title": "%python.command.python.reportIssue.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Test",
Expand All @@ -1721,7 +1712,7 @@
"category": "Python",
"command": "python.runLinting",
"title": "%python.command.python.runLinting.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
Expand All @@ -1733,13 +1724,13 @@
"category": "Python",
"command": "python.setLinter",
"title": "%python.command.python.setLinter.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python Refactor",
"command": "python.sortImports",
"title": "%python.command.python.sortImports.title%",
"when": "!virtualWorkspace && shellExecutionSupported"
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
},
{
"category": "Python",
Expand Down