-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fix language server crash relying on node crypto #657
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 35a931e in 49 seconds
More details
- Looked at
27
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. typescript/vscode-ext/packages/language-server/src/server.ts:37
- Draft comment:
Removing the global assignment of the Node.js 'crypto' module is a significant change. Ensure that all cryptographic operations in the language server and its dependencies are compatible with this change and that there is an alternative implementation that does not rely on Node.js-specific features. - Reason this comment was not posted:
Confidence of 0% on close inspection, compared to threshold of 50%.
Workflow ID: wflow_8NpKBKSJhnZRS6Oq
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
35a931e
to
900d14e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 900d14e in 56 seconds
More details
- Looked at
130
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. typescript/vscode-ext/packages/package.json:5
- Draft comment:
The PR description states the version was incremented from0.36.0
to0.36.1
, but the diff shows an increment to0.36.2
. Please confirm the correct version update. - Reason this comment was not posted:
Confidence of 0% on close inspection, compared to threshold of 50%.
Workflow ID: wflow_AkqmFNVQftACBX7B
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
<!-- ELLIPSIS_HIDDEN --> | 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit 900d14e | |--------|--------| ### Summary: This PR addresses crashes by removing the assignment of Node's `crypto` module to `globalThis.crypto` in the language server and updates the package version. **Key points**: - Removed global assignment of `crypto` to `node:crypto`'s `webcrypto` in `server.ts`. - Removed assignment of Node's `crypto` module to `globalThis.crypto` in `server.ts`. - Updated package version in `package.json` from `0.36.0` to `0.36.1`. ---- Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev) <!-- ELLIPSIS_HIDDEN -->
Summary:
This PR addresses crashes by removing the assignment of Node's
crypto
module toglobalThis.crypto
in the language server and updates the package version.Key points:
crypto
tonode:crypto
'swebcrypto
inserver.ts
.crypto
module toglobalThis.crypto
inserver.ts
.package.json
from0.36.0
to0.36.1
.Generated with ❤️ by ellipsis.dev