作者:mobiledu2502886833 | 来源:互联网 | 2023-09-25 15:00
- This PR contains a set of minimal changes to the Language Server code
- They are critical for some users who are running into issues when trying to use the VSCode extension (see #1261)
- I am keeping them as small and self-contained as possible so we can release a patch ASAP
Changes
Suppress most error responses from the Language Server
Improve initialization order of LSP components
- After looking at some usage logs I found sporadic "unhandled method" exceptions (thrown by the LSP client on the VSCode extension side) that were, in some cases, resulting in an empty outline, or in the extension host shutting down the extension altogether. It is hard to understand the race conditions involved, but initializing them as early as possible is a simple, albeit blunt, solution.
- This is a really small fix that changes the initialization sequence of parts of the language server
- It makes sure that several request handlers (commands, outline, etc) are installed as early as possible in the initialization process
Tolerate certain missing files and folders
- Do not throw if schema.prisma does not exist or cannot be parsed
- Do not throw "pages" folder does not exist (or processPagesDir fails)
- More info in this issue comment
该提问来源于开源项目:redwoodjs/redwood
So there's currently not a way to use the upgrade command to specify a version. So I just created this PR which will make that possible:
https://github.com/redwoodjs/redwood/pull/1270
In the meantime, it's messy but you could use this to upgrade all at once (just swap out ${tag} with specific version):
1 2
| bash
`yarn upgrade /core@${tag} && yarn workspace api upgrade /api@${tag} && yarn workspace web upgrade /web@${tag} /router@${tag} /forms@${tag}` |
How to find canary specific to a PR
It's not a perfect system, but each time a PR is merged into
a GH Action is triggered than releases a new canary version. So you can look through the Actions here to find the associated PR:
https://github.com/redwoodjs/redwood/actions
The PR title is in bold. And you're looking for the Action type "Publish canaray packages to npm". So in the case of the PR titled "modify generated tailwind config to opt-in to upcoming changes", you can find the specific canary version here:
https://github.com/redwoodjs/redwood/runs/1206475453?check_suite_focus=true
1 2 3 4 5 6 7 8 9
| bash
Found 15 packages to publish:
- /api-server => 0.19.2-canary.37+4bed1aa2
lerna info auto-confirmed
- /api => 0.19.2-canary.37+4bed1aa2
lerna info publish Publishing packages to npm...
- /auth => 0.19.2-canary.37+4bed1aa2
- /cli => 0.19.2-canary.37+4bed1aa2
... |
So the canary version in this case is
¯_(ツ)_/¯