Skip to content

Commit

Permalink
Add back import typespec menu (#6014)
Browse files Browse the repository at this point in the history
The "Import TypeSpec from OpenApi3" was removed by PR #5890 by mistake,
so add it back.
  • Loading branch information
RodgeFu authored Feb 15, 2025
1 parent f0ab72c commit a56b016
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- typespec-vscode
---

Add "Import TypeSpec from OpenApi3" menu item into explorer context menu
8 changes: 6 additions & 2 deletions packages/typespec-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,21 @@
],
"menus": {
"explorer/context": [
{
"command": "typespec.importFromOpenApi3",
"group": "typespec@2"
},
{
"command": "typespec.generateCode",
"when": "explorerResourceIsFolder || resourceLangId == typespec",
"group": "code_generation"
"group": "typespec@1"
}
],
"editor/context": [
{
"command": "typespec.generateCode",
"when": "resourceLangId == typespec",
"group": "code_generation"
"group": "typespec@1"
}
]
},
Expand Down

0 comments on commit a56b016

Please sign in to comment.