Skip to content

Commit 83de057

Browse files
committed
Remove run selection commands from command palette
1 parent 98aaab1 commit 83de057

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

package.json

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -319,17 +319,6 @@
319319
"icon": "$(play)",
320320
"title": "%python.command.python.execInDedicatedTerminal.title%"
321321
},
322-
{
323-
"category": "Python",
324-
"command": "python.execSelectionInDjangoShell",
325-
"title": "%python.command.python.execSelectionInDjangoShell.title%"
326-
},
327-
{
328-
"category": "Python",
329-
"command": "python.execSelectionInTerminal",
330-
"title": "%python.command.python.execSelectionInTerminal.title%",
331-
"shortTitle": "%python.command.python.execSelectionInTerminal.shortTitle%"
332-
},
333322
{
334323
"category": "Python",
335324
"command": "python.execInREPL",
@@ -1129,11 +1118,6 @@
11291118
}
11301119
],
11311120
"keybindings": [
1132-
{
1133-
"command": "python.execSelectionInTerminal",
1134-
"key": "shift+enter",
1135-
"when": "editorTextFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && !isCompositeNotebook"
1136-
},
11371121
{
11381122
"command": "python.execInREPL",
11391123
"key": "shift+enter",
@@ -1279,18 +1263,6 @@
12791263
"title": "%python.command.python.execInDedicatedTerminal.title%",
12801264
"when": "false"
12811265
},
1282-
{
1283-
"category": "Python",
1284-
"command": "python.execSelectionInDjangoShell",
1285-
"title": "%python.command.python.execSelectionInDjangoShell.title%",
1286-
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
1287-
},
1288-
{
1289-
"category": "Python",
1290-
"command": "python.execSelectionInTerminal",
1291-
"title": "%python.command.python.execSelectionInTerminal.title%",
1292-
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
1293-
},
12941266
{
12951267
"category": "Python",
12961268
"command": "python.execInREPL",
@@ -1379,16 +1351,6 @@
13791351
"group": "Python",
13801352
"when": "resourceLangId == python && !virtualWorkspace && shellExecutionSupported"
13811353
},
1382-
{
1383-
"command": "python.execSelectionInDjangoShell",
1384-
"group": "Python",
1385-
"when": "editorHasSelection && editorLangId == python && python.isDjangoProject && !virtualWorkspace && shellExecutionSupported"
1386-
},
1387-
{
1388-
"command": "python.execSelectionInTerminal",
1389-
"group": "Python",
1390-
"when": "!config.python.REPL.sendToNativeREPL && editorFocus && editorLangId == python && !virtualWorkspace && shellExecutionSupported"
1391-
},
13921354
{
13931355
"command": "python.execInREPL",
13941356
"group": "Python",

package.nls.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"python.command.python.viewLanguageServerOutput.title": "Show Language Server Output",
1919
"python.command.python.configureTests.title": "Configure Tests",
2020
"python.command.testing.rerunFailedTests.title": "Rerun Failed Tests",
21-
"python.command.python.execSelectionInTerminal.title": "Run Selection/Line in Python Terminal",
22-
"python.command.python.execSelectionInTerminal.shortTitle": "Run Selection/Line",
2321
"python.command.python.execInREPL.title": "Run Selection/Line in Native Python REPL",
24-
"python.command.python.execSelectionInDjangoShell.title": "Run Selection/Line in Django Shell",
2522
"python.command.python.reportIssue.title": "Report Issue...",
2623
"python.command.python.clearCacheAndReload.title": "Clear Cache and Reload Window",
2724
"python.command.python.analysis.restartLanguageServer.title": "Restart Language Server",
@@ -91,7 +88,7 @@
9188
"python.venvPath.description": "Path to folder with a list of Virtual Environments (e.g. ~/.pyenv, ~/Envs, ~/.virtualenvs).",
9289
"walkthrough.pythonWelcome.title": "Get Started with Python Development",
9390
"walkthrough.pythonWelcome.description": "Your first steps to set up a Python project with all the powerful tools and features that the Python extension has to offer!",
94-
"walkthrough.step.python.createPythonFile.title": "Create a Python file",
91+
"walkthrough.step.python.createPythonFile.title": "Create a Python file",
9592
"walkthrough.step.python.createPythonFolder.title": "Open a Python project folder",
9693
"walkthrough.step.python.createPythonFile.description": {
9794
"message": "[Open](command:toSide:workbench.action.files.openFile) or [create](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22python%22%7D) a Python file - make sure to save it as \".py\".\n[Create Python File](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22python%22%7D)",

0 commit comments

Comments
 (0)