From 19409246a0400c1ddf427eb4991643a5a82b582b Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:51:25 -0500 Subject: [PATCH] [python] add script to version (#5890) Co-authored-by: iscai-msft --- .../changes/python-bump-2025-1-6-10-8-5.md | 7 ----- packages/http-client-python/package.json | 3 +- packages/typespec-vscode/package.json | 28 +++++++------------ 3 files changed, 12 insertions(+), 26 deletions(-) delete mode 100644 .chronus/changes/python-bump-2025-1-6-10-8-5.md diff --git a/.chronus/changes/python-bump-2025-1-6-10-8-5.md b/.chronus/changes/python-bump-2025-1-6-10-8-5.md deleted file mode 100644 index f4e6989810..0000000000 --- a/.chronus/changes/python-bump-2025-1-6-10-8-5.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -Release a new version \ No newline at end of file diff --git a/packages/http-client-python/package.json b/packages/http-client-python/package.json index 1a2ae97468..eeace79617 100644 --- a/packages/http-client-python/package.json +++ b/packages/http-client-python/package.json @@ -41,7 +41,8 @@ "ci": "npm run test:emitter && npm run ci:generator --", "ci:generator": "tsx ./eng/scripts/ci/run-ci.ts", "test:generator": "tsx ./eng/scripts/ci/run-ci.ts --command=test", - "test:emitter": "vitest run -c ./emitter/vitest.config.ts" + "test:emitter": "vitest run -c ./emitter/vitest.config.ts", + "change:version": "pnpm chronus version --ignore-policies --only @typespec/http-client-python" }, "files": [ "dist/**", diff --git a/packages/typespec-vscode/package.json b/packages/typespec-vscode/package.json index 80facc8b76..73d756a318 100644 --- a/packages/typespec-vscode/package.json +++ b/packages/typespec-vscode/package.json @@ -115,8 +115,16 @@ "menus": { "explorer/context": [ { - "command": "typespec.importFromOpenApi3", - "group": "typespec@1" + "command": "typespec.generateCode", + "when": "explorerResourceIsFolder || resourceLangId == typespec", + "group": "code_generation" + } + ], + "editor/context": [ + { + "command": "typespec.generateCode", + "when": "resourceLangId == typespec", + "group": "code_generation" } ] }, @@ -170,22 +178,6 @@ "category": "TypeSpec" } ], - "menus": { - "explorer/context": [ - { - "command": "typespec.generateCode", - "when": "explorerResourceIsFolder || resourceLangId == typespec", - "group": "code_generation" - } - ], - "editor/context": [ - { - "command": "typespec.generateCode", - "when": "resourceLangId == typespec", - "group": "code_generation" - } - ] - }, "semanticTokenScopes": [ { "scopes": {