Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor: Replace package.json requires with extension context info #5071

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

Merged
JustinGrote merged 1 commit into main from refactor/packageJsonRefs
Oct 29, 2024

Conversation

Copy link
Collaborator

@JustinGrote JustinGrote commented Oct 29, 2024
edited
Loading

PR Summary

The package.json info is now available in the extension context, this avoids a round trip. Note there is no validation on the import of the information (there wasn't before either), but it's very unlikely to surface a null or undefined, or have that affect operation of the extension (famous last words).

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • [NA] PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@JustinGrote JustinGrote changed the title (削除) Replace require with extension handling (削除ここまで) (追記) Refactor: Replace package.json requires with extension context info (追記ここまで) Oct 29, 2024
@JustinGrote JustinGrote marked this pull request as ready for review October 29, 2024 17:34
@JustinGrote JustinGrote added this pull request to the merge queue Oct 29, 2024
Copy link
Member

@andyleejordan andyleejordan left a comment

Choose a reason for hiding this comment

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

Love it, thanks!

Merged via the queue into main with commit 64f32d3 Oct 29, 2024
7 checks passed
@JustinGrote JustinGrote deleted the refactor/packageJsonRefs branch October 29, 2024 18:57
Copy link
Collaborator Author

Quick note that this API is also available in 1.82 which is what Azure Data Studio is on so that should be fine but I haven't directly tested it.
https://github.com/microsoft/vscode/blob/release/1.82/src/vscode-dts/vscode.d.ts#L7077

Copy link
Member

@JustinGrote we no longer have to support ADS and I bumped our engine to 1.94!

JustinGrote reacted with heart emoji

@andyleejordan andyleejordan added the Issue-Enhancement A feature request (enhancement). label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@andyleejordan andyleejordan andyleejordan approved these changes

@SeeminglyScience SeeminglyScience Awaiting requested review from SeeminglyScience

Labels
Area-Startup Issue-Enhancement A feature request (enhancement).
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /