From 9f201de427a1631ad9d477d781dfc5ce84a28ca6 Mon Sep 17 00:00:00 2001 From: luabud Date: Thu, 13 Jan 2022 14:59:14 -0800 Subject: [PATCH 1/8] Add step to create Python file and modify svg for interpreter selection (temporarily) --- package.json | 14 ++++- .../walkthrough/python-interpreter-v2.svg | 55 +++++++++++++++++++ 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 resources/walkthrough/python-interpreter-v2.svg diff --git a/package.json b/package.json index 10cbc46a33ef..a4aa5bb590de 100644 --- a/package.json +++ b/package.json @@ -132,12 +132,22 @@ "when": "workspacePlatform == linux", "command": "workbench.action.terminal.new" }, + { + "id": "python.createPythonFile", + "title": "Create a Python file", + "description": "Create a new file and save it as \".py\" to start with your Python development. \n[Create Python File](command:toSide:workbench.action.files.newUntitledFile)", + "media": { + "svg": "resources/walkthrough/open-folder.svg", + "altText": "Open a a Python file or a folder with a Python project." + }, + "when": "" + }, { "id": "python.selectInterpreter", "title": "Select a Python Interpreter", "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))", "media": { - "svg": "resources/walkthrough/python-interpreter.svg", + "svg": "resources/walkthrough/python-interpreter-v2.svg", "altText": "Selecting a python interpreter from the status bar" }, "when": "" @@ -145,7 +155,7 @@ { "id": "python.runAndDebug", "title": "Run and debug your Python file", - "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)", + "description": "If you haven't already, [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)", "media": { "svg": "resources/walkthrough/rundebug2.svg", "altText": "How to run and debug in VS Code with F5 or the play button on the top right." diff --git a/resources/walkthrough/python-interpreter-v2.svg b/resources/walkthrough/python-interpreter-v2.svg new file mode 100644 index 000000000000..3c866b2de621 --- /dev/null +++ b/resources/walkthrough/python-interpreter-v2.svg @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 08802d0924a505b0935a4fbf04d220f4330d9597 Mon Sep 17 00:00:00 2001 From: Luciana Abud <45497113+luabud@users.noreply.github.com> Date: Thu, 13 Jan 2022 17:24:16 -0800 Subject: [PATCH 2/8] Apply suggestions from code review Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a4aa5bb590de..e0b575dbf430 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ { "id": "python.createPythonFile", "title": "Create a Python file", - "description": "Create a new file and save it as \".py\" to start with your Python development. \n[Create Python File](command:toSide:workbench.action.files.newUntitledFile)", + "description": "Create a new file and save it as \".py\" to get started. \n[Create Python File](command:toSide:workbench.action.files.newUntitledFile)", "media": { "svg": "resources/walkthrough/open-folder.svg", "altText": "Open a a Python file or a folder with a Python project." From 9a64a9617d49da211754001ad5777c08415fab0f Mon Sep 17 00:00:00 2001 From: luabud Date: Thu, 13 Jan 2022 17:25:33 -0800 Subject: [PATCH 3/8] Remove unnecessary wording --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a4aa5bb590de..6019eecc2b27 100644 --- a/package.json +++ b/package.json @@ -155,7 +155,7 @@ { "id": "python.runAndDebug", "title": "Run and debug your Python file", - "description": "If you haven't already, [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)", + "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)", "media": { "svg": "resources/walkthrough/rundebug2.svg", "altText": "How to run and debug in VS Code with F5 or the play button on the top right." From a3d6ff64adf4ab83963b33e27ec92d9a241c2dcb Mon Sep 17 00:00:00 2001 From: Luciana Abud <45497113+luabud@users.noreply.github.com> Date: Thu, 13 Jan 2022 17:27:43 -0800 Subject: [PATCH 4/8] Remove unnecessary wording --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e0b575dbf430..bffb34292b31 100644 --- a/package.json +++ b/package.json @@ -155,7 +155,7 @@ { "id": "python.runAndDebug", "title": "Run and debug your Python file", - "description": "If you haven't already, [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)", + "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)", "media": { "svg": "resources/walkthrough/rundebug2.svg", "altText": "How to run and debug in VS Code with F5 or the play button on the top right." From f4124ce22bd85861bdb97afdb631fef0c8280348 Mon Sep 17 00:00:00 2001 From: Luciana Abud <45497113+luabud@users.noreply.github.com> Date: Mon, 17 Jan 2022 14:30:05 -0800 Subject: [PATCH 5/8] Apply suggestions from code review Co-authored-by: Kartik Raj --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bffb34292b31..8ad332fb91a8 100644 --- a/package.json +++ b/package.json @@ -135,10 +135,10 @@ { "id": "python.createPythonFile", "title": "Create a Python file", - "description": "Create a new file and save it as \".py\" to get started. \n[Create Python File](command:toSide:workbench.action.files.newUntitledFile)", + "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\".", "media": { "svg": "resources/walkthrough/open-folder.svg", - "altText": "Open a a Python file or a folder with a Python project." + "altText": "Open a Python file or a folder with a Python project." }, "when": "" }, From c24c6ea79aba5ab689a26ec441198f0b3a571c98 Mon Sep 17 00:00:00 2001 From: luabud Date: Mon, 17 Jan 2022 15:00:08 -0800 Subject: [PATCH 6/8] Add select interpreter command tip and remove open or create instructions from run and debug tile --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8ad332fb91a8..3c5cd8f09600 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ { "id": "python.createPythonFile", "title": "Create a Python file", - "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\".", + "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)", "media": { "svg": "resources/walkthrough/open-folder.svg", "altText": "Open a Python file or a folder with a Python project." @@ -145,7 +145,7 @@ { "id": "python.selectInterpreter", "title": "Select a Python Interpreter", - "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))", + "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: Relow Window`` command). ", "media": { "svg": "resources/walkthrough/python-interpreter-v2.svg", "altText": "Selecting a python interpreter from the status bar" @@ -155,7 +155,7 @@ { "id": "python.runAndDebug", "title": "Run and debug your Python file", - "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)", + "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)", "media": { "svg": "resources/walkthrough/rundebug2.svg", "altText": "How to run and debug in VS Code with F5 or the play button on the top right." From 359cb94144ad542b8a9b90d47465ce4d616e2ee2 Mon Sep 17 00:00:00 2001 From: Luciana Abud <45497113+luabud@users.noreply.github.com> Date: Tue, 18 Jan 2022 09:18:02 -0800 Subject: [PATCH 7/8] Fix typo Co-authored-by: Kartik Raj --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c5cd8f09600..3815a4d658ee 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,7 @@ { "id": "python.selectInterpreter", "title": "Select a Python Interpreter", - "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: Relow Window`` command). ", + "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). ", "media": { "svg": "resources/walkthrough/python-interpreter-v2.svg", "altText": "Selecting a python interpreter from the status bar" From 857fa9bee18e689f0972b7afbc156b60ce3255ec Mon Sep 17 00:00:00 2001 From: luabud Date: Tue, 18 Jan 2022 14:30:53 -0800 Subject: [PATCH 8/8] Run prettier --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3815a4d658ee..dc2f4235d933 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,13 @@ }, "languageServerVersion": "0.5.30", "publisher": "ms-python", - "enabledApiProposals": ["languageStatus", "quickPickSortByLabel", "quickPickSeparators", "testObserver", "notebookEditor"], + "enabledApiProposals": [ + "languageStatus", + "quickPickSortByLabel", + "quickPickSeparators", + "testObserver", + "notebookEditor" + ], "author": { "name": "Microsoft Corporation" },