From 1c8b85587cc7ae0ade9946862770e3671db7818b Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Wed, 17 Apr 2024 17:43:18 -0700 Subject: [PATCH] Added views and logo --- package.json | 26 +++++++++++++++++++++++++- package.nls.json | 5 ++++- resources/logo.svg | 19 +++++++++++++++++++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 resources/logo.svg diff --git a/package.json b/package.json index 42b1a03ff2816..45948ff42903f 100644 --- a/package.json +++ b/package.json @@ -1469,6 +1469,7 @@ "when": "!virtualWorkspace && shellExecutionSupported" } ], + "yamlValidation": [ { "fileMatch": ".condarc", @@ -1482,7 +1483,30 @@ "fileMatch": "meta.yaml", "url": "./schemas/conda-meta.json" } - ] + ], + "viewsContainers": { + "activitybar": [ + { + "id": "python-environments", + "title": "%python.views.activityBar.title%", + "icon": "resources/logo.svg" + } + ] + }, + "views": { + "python-environments": [ + { + "id": "python-projects-scripts", + "name": "%python.views.treeView.projectsAndScripts.title%", + "icon": "resources/logo.svg" + }, + { + "id": "python-environment-managers", + "name": "%python.views.treeView.environmentManagers.title%", + "icon": "resources/logo.svg" + } + ] + } }, "scripts": { "package": "gulp clean && gulp prePublishBundle && vsce package -o ms-python-insiders.vsix", diff --git a/package.nls.json b/package.nls.json index 5a5029231b17f..48622d821d535 100644 --- a/package.nls.json +++ b/package.nls.json @@ -84,9 +84,12 @@ "python.testing.unittestEnabled.description": "Enable testing using unittest.", "python.venvFolders.description": "Folders in your home directory to look into for virtual environments (supports pyenv, direnv and virtualenvwrapper by default).", "python.venvPath.description": "Path to folder with a list of Virtual Environments (e.g. ~/.pyenv, ~/Envs, ~/.virtualenvs).", + "python.views.activityBar.title": "Python Environments", + "python.views.treeView.projectsAndScripts.title": "Workspaces, Projects, and Scripts", + "python.views.treeView.environmentManagers.title": "Environment Managers", "walkthrough.pythonWelcome.title": "Get Started with Python Development", "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!", - "walkthrough.step.python.createPythonFile.title": "Create a Python file", + "walkthrough.step.python.createPythonFile.title": "Create a Python file", "walkthrough.step.python.createPythonFolder.title": "Open a Python project folder", "walkthrough.step.python.createPythonFile.description": { "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)", diff --git a/resources/logo.svg b/resources/logo.svg new file mode 100644 index 0000000000000..533ed22980d78 --- /dev/null +++ b/resources/logo.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + +