From 0ced7982508c5d9c5f0f2e524b0327742e5e5553 Mon Sep 17 00:00:00 2001 From: d35ha Date: Tue, 11 Jun 2024 08:21:31 +0000 Subject: [PATCH] Add python and jupyter vscode extension packages --- .../tools/chocolateyinstall.ps1 | 8 ++++++++ .../tools/chocolateyuninstall.ps1 | 6 ++++++ .../vscode.extension.jupyter.vm.nuspec | 13 +++++++++++++ .../tools/chocolateyinstall.ps1 | 8 ++++++++ .../tools/chocolateyuninstall.ps1 | 6 ++++++ .../vscode.extension.python.vm.nuspec | 13 +++++++++++++ scripts/test/lint.py | 1 + 7 files changed, 55 insertions(+) create mode 100644 packages/vscode.extension.jupyter.vm/tools/chocolateyinstall.ps1 create mode 100644 packages/vscode.extension.jupyter.vm/tools/chocolateyuninstall.ps1 create mode 100644 packages/vscode.extension.jupyter.vm/vscode.extension.jupyter.vm.nuspec create mode 100644 packages/vscode.extension.python.vm/tools/chocolateyinstall.ps1 create mode 100644 packages/vscode.extension.python.vm/tools/chocolateyuninstall.ps1 create mode 100644 packages/vscode.extension.python.vm/vscode.extension.python.vm.nuspec diff --git a/packages/vscode.extension.jupyter.vm/tools/chocolateyinstall.ps1 b/packages/vscode.extension.jupyter.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 000000000..59f74fa4f --- /dev/null +++ b/packages/vscode.extension.jupyter.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,8 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +$extensionId = 'ms-toolsai.jupyter' +$extensionVersion = '2024.6.2024060601' +$executablePath = Join-Path ${Env:ProgramFiles} "\Microsoft VS Code\bin\code.cmd" -Resolve + +& $executablePath --install-extension $extensionId '@' $extensionVersion diff --git a/packages/vscode.extension.jupyter.vm/tools/chocolateyuninstall.ps1 b/packages/vscode.extension.jupyter.vm/tools/chocolateyuninstall.ps1 new file mode 100644 index 000000000..2a9213384 --- /dev/null +++ b/packages/vscode.extension.jupyter.vm/tools/chocolateyuninstall.ps1 @@ -0,0 +1,6 @@ +$ErrorActionPreference = 'Continue' +Import-Module vm.common -Force -DisableNameChecking + +$extensionId = 'ms-toolsai.jupyter' + +code --uninstall-extension $extensionId diff --git a/packages/vscode.extension.jupyter.vm/vscode.extension.jupyter.vm.nuspec b/packages/vscode.extension.jupyter.vm/vscode.extension.jupyter.vm.nuspec new file mode 100644 index 000000000..6beed1f5b --- /dev/null +++ b/packages/vscode.extension.jupyter.vm/vscode.extension.jupyter.vm.nuspec @@ -0,0 +1,13 @@ + + + + vscode.extension.jupyter.vm + 2024.6.2024060601 + Microsoft + Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more. + + + + + + diff --git a/packages/vscode.extension.python.vm/tools/chocolateyinstall.ps1 b/packages/vscode.extension.python.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 000000000..e3f3f1dfb --- /dev/null +++ b/packages/vscode.extension.python.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,8 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +$extensionId = 'ms-python.python' +$extensionVersion = '2024.9.11621011' +$executablePath = Join-Path ${Env:ProgramFiles} "\Microsoft VS Code\bin\code.cmd" -Resolve + +& $executablePath --install-extension $extensionId '@' $extensionVersion diff --git a/packages/vscode.extension.python.vm/tools/chocolateyuninstall.ps1 b/packages/vscode.extension.python.vm/tools/chocolateyuninstall.ps1 new file mode 100644 index 000000000..d167956d4 --- /dev/null +++ b/packages/vscode.extension.python.vm/tools/chocolateyuninstall.ps1 @@ -0,0 +1,6 @@ +$ErrorActionPreference = 'Continue' +Import-Module vm.common -Force -DisableNameChecking + +$extensionId = 'ms-python.python' + +code --uninstall-extension $extensionId diff --git a/packages/vscode.extension.python.vm/vscode.extension.python.vm.nuspec b/packages/vscode.extension.python.vm/vscode.extension.python.vm.nuspec new file mode 100644 index 000000000..286d9fd33 --- /dev/null +++ b/packages/vscode.extension.python.vm/vscode.extension.python.vm.nuspec @@ -0,0 +1,13 @@ + + + + vscode.extension.python.vm + 2024.9.11621011 + Microsoft + Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refactoring, unit tests, and more. + + + + + + diff --git a/scripts/test/lint.py b/scripts/test/lint.py index de5257e93..72123ba94 100644 --- a/scripts/test/lint.py +++ b/scripts/test/lint.py @@ -319,6 +319,7 @@ class UsesInvalidCategory(Lint): "pdbs.pdbresym.vm", "python3.vm", "x64dbgpy.vm", + "vscode.extension.", ] root_path = os.path.abspath(os.path.join(__file__, "../../.."))