Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode extension: add openapi3 preview #6015

Open
wants to merge 72 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
ac13a8e
init check-in
Jan 22, 2025
8e9c36b
do not use tmp folder
Jan 22, 2025
5f4bba3
open preview panel only after swagger file is generated
Feb 6, 2025
64e14d8
Merge branch 'main' into vscode/openapi-preview
Feb 8, 2025
63492f3
improve multiple swagger file selection ui
Feb 11, 2025
556e9db
use temp folder to host preview output
Feb 13, 2025
9166069
Merge branch 'main' into vscode/openapi-preview
Feb 13, 2025
f057599
fix pnpm not supprted in vsce package
Feb 13, 2025
c202688
fix command title
Feb 14, 2025
84dd3f8
Check minimal version of compiler
Feb 14, 2025
baae442
Merge branch 'main' into vscode/openapi-preview
Feb 14, 2025
e87fc7c
improve file selection error
Feb 14, 2025
b5a1f69
improve error handling
Feb 14, 2025
e224bde
add chronus change log
Feb 14, 2025
9185597
Merge branch 'main' into vscode/openapi-preview
archerzz Feb 14, 2025
ae60f8c
fix lint and format errors
Feb 14, 2025
fcd4a5c
roll back changes in license notice
Feb 14, 2025
68727e3
update change log to remove [vscode]
Feb 18, 2025
f639b31
add `swagger-ui-dist` as dependency and update build scripts accordingly
Feb 18, 2025
29b71e5
replace showErrorMessage with logger.error
Feb 18, 2025
0388c2b
catch async io operation exceptions
Feb 19, 2025
a3ffb90
roll back the change of throwing exception from `runCliCommand`
Feb 19, 2025
8014ae4
move `throttle()` from command implementation into `utils.ts`
Feb 19, 2025
c7b3238
move `parseOpenApi3File()` into `utils.ts`
Feb 19, 2025
3c87bd9
replace methods of `path` module with `path-utils` from compiler
Feb 19, 2025
3c5e28c
move `openaapi3-preview.ts` into `vscode-cmd` folder
Feb 19, 2025
71fdb8f
add openapi3 preview into menu items
Feb 19, 2025
ea6f6f7
update `showQuickPick` options to follow the convention
Feb 19, 2025
5d23d15
prompt uses to select when multiple output files are available
Feb 19, 2025
4a11104
Merge branch 'main' into vscode/openapi-preview
Feb 19, 2025
872f302
update pnpm-lock
Feb 19, 2025
ff30c0e
restore license notice
Feb 19, 2025
bcdcb52
Merge branch 'main' into vscode/openapi-preview
archerzz Feb 19, 2025
76d9c8f
http-client-java, when codegen error, trace the stderr too (#6054)
weidongxu-microsoft Feb 19, 2025
ac0b22d
Add details for C# emitter (#6052)
JoshLove-msft Feb 19, 2025
2ec8fae
[@typespec/http-specs] Fixed paths in specs/routes (#6013)
v-jiaodi Feb 19, 2025
2571810
Respect fully qualified namespace when matching (#6051)
JoshLove-msft Feb 19, 2025
d3d8482
refactor: rename ClientModelPlugin to ScmCodeModelPlugin (#6055)
jorgerangel-msft Feb 19, 2025
53cc8d8
Add additional options to readme (#6057)
JoshLove-msft Feb 19, 2025
266342e
Fix: StringTemplate type not supported in typespecValueToJson (#5937)
timotheeguerin Feb 19, 2025
8b397be
Add tests for includeTemplateDeclaration (#5894)
timotheeguerin Feb 19, 2025
df4f95b
Add fully qualified names support for AddTypesToKeep (#6061)
JoshLove-msft Feb 19, 2025
59ff8bc
Delete out-dated doc (#6063)
JoshLove-msft Feb 19, 2025
72492cd
Standalone ability to start local server (#6047)
timotheeguerin Feb 19, 2025
d67eb8c
remove typespec extension out of preview model (#5900)
chunyu3 Feb 20, 2025
1030b4a
[python] remove confusing words from docstring of models (#6070)
msyyc Feb 20, 2025
56316b9
Avoid duplicate null check and fix null serialization property name (…
JoshLove-msft Feb 20, 2025
7174976
Fixes to enums, operation signatures (#5952)
markcowl Feb 20, 2025
10883fc
Build emitter tests (#6089)
JoshLove-msft Feb 21, 2025
69bf3ce
update ordering of commands and menu items
Feb 21, 2025
ab1889e
rename `parseOpenApi3File` to `parseJsonFromFile` and change error ha…
Feb 21, 2025
ef3981c
add selected file in the error log if it's available
Feb 21, 2025
ed00127
Merge branch 'main' into vscode/openapi-preview
archerzz Feb 21, 2025
3bce4db
Merge branch 'main' into vscode/openapi-preview
archerzz Feb 24, 2025
8f74429
Merge branch 'main' into vscode/openapi-preview
archerzz Feb 25, 2025
f403f70
Merge branch 'main' into vscode/openapi-preview
archerzz Feb 26, 2025
0c85f2f
re-use `TraverseMainTspFileInWorkspace()` in `typespec-utils.ts`
Feb 26, 2025
c3e39de
do not show pop-up message when user cancels file selection
Feb 26, 2025
5d520df
move `swagger-ui-dist` from `dependencies` to `devDependencies`
Feb 26, 2025
48dbbe1
use rollup to copy swaigger-ui-dist files
Feb 26, 2025
ee3a135
Merge branch 'main' into vscode/openapi-preview
archerzz Feb 27, 2025
331537d
Merge branch 'main' into vscode/openapi-preview
Feb 28, 2025
d167658
remove `--no-dependencies` in `vsce package` command
Feb 28, 2025
59c0cc2
replace custom temp folder creation codes with `mkdtemp()`
Feb 28, 2025
88607c7
Merge branch 'main' into vscode/openapi-preview
Mar 6, 2025
0b15a08
clear tmp folder before generate open api3 contents
Mar 6, 2025
5907562
fix overwritten package dependencies
Mar 7, 2025
3caedbf
Merge branch 'main' into vscode/openapi-preview
Mar 7, 2025
e1b76ae
parse `packge.json` for entry point tsp file
Mar 7, 2025
f8d3765
unify swagger-ui-dist versions
Mar 7, 2025
5e4c272
Merge branch 'main' into vscode/openapi-preview
Mar 7, 2025
fe2ea06
Merge branch 'main' into vscode/openapi-preview
archerzz Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move swagger-ui-dist from dependencies to devDependencies
  • Loading branch information
Mingzhe Huang (from Dev Box) committed Feb 26, 2025
commit 5d520df42ab422e33b132ca29b8fc3ee8a04bce9
4 changes: 1 addition & 3 deletions packages/typespec-vscode/package.json
Original file line number Diff line number Diff line change
@@ -273,12 +273,10 @@
"rimraf": "~6.0.1",
"rollup": "~4.31.0",
"semver": "^7.6.3",
"swagger-ui-dist": "^5.18.2",
"typescript": "~5.7.3",
"vitest": "^3.0.5",
"vscode-languageclient": "~9.0.1",
"yaml": "~2.7.0"
},
"dependencies": {
"swagger-ui-dist": "^5.18.2"
}
}
7 changes: 3 additions & 4 deletions pnpm-lock.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be some version downgrade happening here, probably a merge issue.

can you run this (replace upstream with the name of the upstream remote(this repo) if its not that)

git checkout upstream/main -- pnpm-lock.yaml 
pnpm install

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.