Skip to content

Commit 392f600

Browse files
luabudkimadelineKartik Raj
authored andcommitted
Add step to create Python file and modify svg for interpreter selection (microsoft/vscode-python#18289)
* Add step to create Python file and modify svg for interpreter selection (temporarily) * Apply suggestions from code review Co-authored-by: Kim-Adeline Miguel <[email protected]> * Remove unnecessary wording * Remove unnecessary wording * Apply suggestions from code review Co-authored-by: Kartik Raj <[email protected]> * Add select interpreter command tip and remove open or create instructions from run and debug tile * Fix typo Co-authored-by: Kartik Raj <[email protected]> * Run prettier Co-authored-by: Kim-Adeline Miguel <[email protected]> Co-authored-by: Kartik Raj <[email protected]>
1 parent feaa454 commit 392f600

File tree

2 files changed

+75
-4
lines changed

2 files changed

+75
-4
lines changed

extensions/positron-python/package.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
},
1919
"languageServerVersion": "0.5.30",
2020
"publisher": "ms-python",
21-
"enabledApiProposals": ["languageStatus", "quickPickSortByLabel", "quickPickSeparators", "testObserver", "notebookEditor"],
21+
"enabledApiProposals": [
22+
"languageStatus",
23+
"quickPickSortByLabel",
24+
"quickPickSeparators",
25+
"testObserver",
26+
"notebookEditor"
27+
],
2228
"author": {
2329
"name": "Microsoft Corporation"
2430
},
@@ -132,20 +138,30 @@
132138
"when": "workspacePlatform == linux",
133139
"command": "workbench.action.terminal.new"
134140
},
141+
{
142+
"id": "python.createPythonFile",
143+
"title": "Create a Python file",
144+
"description": "[Open](command:toSide:workbench.action.files.openFile) or [create](command:toSide:workbench.action.files.newUntitledFile) a Python file - make sure to save it as \".py\".\n[Create Python File](command:toSide:workbench.action.files.newUntitledFile)",
145+
"media": {
146+
"svg": "resources/walkthrough/open-folder.svg",
147+
"altText": "Open a Python file or a folder with a Python project."
148+
},
149+
"when": ""
150+
},
135151
{
136152
"id": "python.selectInterpreter",
137153
"title": "Select a Python Interpreter",
138-
"description": "Choose which Python interpreter/environment you want to use for your Python project.\n[Select Python Interpreter](command:python.setInterpreter)\nTip: Reload the window if you installed Python but don't see it in the list (``Developer: Reload Window`` command in the [Command Palette](command:workbench.action.showCommands))",
154+
"description": "Choose which Python interpreter/environment you want to use for your Python project.\n[Select Python Interpreter](command:python.setInterpreter)\n**Tip**: Run the ``Python: Select Interpreter`` command in the [Command Palette](command:workbench.action.showCommands).\nReload the window if you installed Python but don't see it in the list (``Developer: Reload Window`` command). ",
139155
"media": {
140-
"svg": "resources/walkthrough/python-interpreter.svg",
156+
"svg": "resources/walkthrough/python-interpreter-v2.svg",
141157
"altText": "Selecting a python interpreter from the status bar"
142158
},
143159
"when": ""
144160
},
145161
{
146162
"id": "python.runAndDebug",
147163
"title": "Run and debug your Python file",
148-
"description": "[Open](command:toSide:workbench.action.files.openFile) or [create](command:toSide:welcome.showNewFileEntries) a Python file - make sure to save it as \".py\". \n Click on the play button on the top right of the editor, or press F5 when on the file and select \"Python File\" to run with the debugger. \n \n[Learn more](https://code.visualstudio.com/docs/python/python-tutorial#_run-hello-world)",
164+
"description": "Open your Python file and click on the play button on the top right of the editor, or press F5 when on the file and select \"Python File\" to run with the debugger. \n \n[Learn more](https://code.visualstudio.com/docs/python/python-tutorial#_run-hello-world)",
149165
"media": {
150166
"svg": "resources/walkthrough/rundebug2.svg",
151167
"altText": "How to run and debug in VS Code with F5 or the play button on the top right."

0 commit comments

Comments
 (0)