Skip to content

Commit 1840a15

Browse files
authored
1 parent 6fec579 commit 1840a15

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

package.json

+20-6
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,19 @@
17021702
}
17031703
],
17041704
"editor/context": [
1705+
{
1706+
"submenu": "python.run",
1707+
"group": "Python",
1708+
"when": "editorLangId == python && !virtualWorkspace && shellExecutionSupported"
1709+
},
1710+
{
1711+
"command": "python.sortImports",
1712+
"group": "Refactor",
1713+
"title": "%python.command.python.sortImports.title%",
1714+
"when": "editorLangId == python && !notebookEditorFocused && !virtualWorkspace && shellExecutionSupported"
1715+
}
1716+
],
1717+
"python.run": [
17051718
{
17061719
"command": "python.execInTerminal",
17071720
"group": "Python",
@@ -1716,12 +1729,6 @@
17161729
"command": "python.execSelectionInTerminal",
17171730
"group": "Python",
17181731
"when": "editorFocus && editorLangId == python && !virtualWorkspace && shellExecutionSupported"
1719-
},
1720-
{
1721-
"command": "python.sortImports",
1722-
"group": "Refactor",
1723-
"title": "%python.command.python.sortImports.title%",
1724-
"when": "editorLangId == python && !notebookEditorFocused && !virtualWorkspace && shellExecutionSupported"
17251732
}
17261733
],
17271734
"editor/title": [
@@ -1767,6 +1774,13 @@
17671774
}
17681775
]
17691776
},
1777+
"submenus": [
1778+
{
1779+
"id": "python.run",
1780+
"label": "%python.editor.context.submenu.runPython%",
1781+
"icon": "$(play)"
1782+
}
1783+
],
17701784
"viewsWelcome": [
17711785
{
17721786
"view": "testing",

package.nls.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"python.command.python.launchTensorBoard.title": "Launch TensorBoard",
2626
"python.command.python.refreshTensorBoard.title": "Refresh TensorBoard",
2727
"python.menu.createNewFile.title": "Python File",
28+
"python.editor.context.submenu.runPython": "Run Python",
2829
"python.activeStateToolPath.description": "Path to the State Tool executable for ActiveState runtimes (version 0.36+).",
2930
"python.autoComplete.extraPaths.description": "List of paths to libraries and the like that need to be imported by auto complete engine. E.g. when using Google App SDK, the paths are not in system path, hence need to be added into this list.",
3031
"python.condaPath.description": "Path to the conda executable to use for activation (version 4.4+).",

0 commit comments

Comments
 (0)