-
Notifications
You must be signed in to change notification settings - Fork 33
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
Update to vscode v1.82.0 monaco-editor v0.43.0 #189
Conversation
@CGNonofr Finished the vscode patch part |
1fe60d6
to
403d3d0
Compare
@CGNonofr I will adapt the guide above while I proceed. |
@CGNonofr I am not sure the patch creation was good. I resolved conflicts in those files: |
What do you mean by |
@CGNonofr After updating the dependencies and having the patch in place I see 1326 compile errors locally. Theses are one or two orders of magnitude more errors than I expected. 😅 |
@kaisalmen Still no clear to me what you mean :x What does that mean to |
No, why do you think that? Can you check out the branch and reproduce? Or shall I create the patch once more and see if the results are the same? |
I don't exactly know what you did :D here's the patch on this PR: https://github.com/CodinGame/monaco-vscode-api/blob/403d3d0b1910fa5e2168a4888ed50b4e2451e4d1/scripts/vscode.patch (empty) |
It is not empty here: https://github.com/CodinGame/monaco-vscode-api/pull/189/files#diff-2533526504623ad6913cf6b8c9521bf217b521fbef7426a43a4944d3da48261b |
Damn it, sorry. It is |
403d3d0
to
6a40f1f
Compare
|
@CGNonofr Another thing I might have done wrong: I used the |
You should take the patch from main, why using an old one? |
Where did the intermediate vscode.patch updates result from? The process is not clear to me. Btw, there is an error in the patch. I am just rebuilding locally. |
What do you mean by There is multiple way to achieve it though:
The first way seems dangerous to me though as it's easy to lose changes though, git is way better at it |
You updated the patch intermediately after 1.81.0 release of this lib. I was just wondering why or what is the root-course? |
6a40f1f
to
61b8274
Compare
@CGNonofr I solved almost half of the compilation problems. Understanding some of the changes without context just by looking at git diffs is hard. |
Agreed! having a git history explaining the changes would be nice, but I don't exactly know how to have that |
I use Fork to compare directly the tags and see what has changed, but even this way there are hundreds of files. Other visual tools can do the same. |
61b8274
to
6c2714b
Compare
@CGNonofr there are a few compile errors left. Maybe you have an idea? Also, you should check if my changes to It will be helpful to have some breadcrumbs / idea-box how to best analyse / tackle the changes in between two vscode tags. WDYT? |
They are! Do not hesitate to run the eslint autofix, it gets rid of the majority of your errors I've just realized we need to run The remaining errors in missing-services.ts are not hard to fix It remains the errors in quickcess.ts which are just a import path to update and a new method to add It then remains a missing dependency and that's it I've added a commit with the fixes, feel free to rewrite it as you wish I've not tested it at all yet though
What do you have in mind? |
@CGNonofr thank you!
Basically expand the "upgrade guide" with hints / example of what to do. I can incorporate some of your more general hints above, for example. |
It looks like there is 5 new services to add in
Yep great idea! |
@CGNonofr sorry there was not further progress. I am busy with other things currently. Maybe I have more time end of the week? |
No problem, same problem here. |
@CGNonofr I have added the missing service and started the upgrade guide (WIP). Have you seen this already in the demo (don't know if it is new)? |
@CGNonofr this is ready for review. Are you happy with a doc directory for the upgrade guide or should it be moved elsewhere? |
That path is fine! that's perfect The documentation itself could be a little more explicit/detailed but that's a good starting point we need to have that tsserver error fixed though |
It will evolve! 🙂
I will look into it later tonight or tomorrow. |
If I remove this hack: Can this whole error be somehow linked to this change? Any idea? I currently don't know how to fix this. |
Yeah this hack can now be safely removed, I've already removed it in one of my PRs They seem to have change things a lot indeed I don't know what is the exact issue, nor why I'm not able to reproduce in vscode.dev. They added a lot of console.log and they are not there on vscode.dev either. I even tried to use the same commit as the one published on vscode.dev... Maybe they don't use the last typescript-language-feature extension version? btw, it doesn't seem to have consequences and it's clear that there is a missing |
Ok more details:
So my conclusion is that the feature is buggy/verbose, nobody tested it because vscode.dev doesn't use it anyway. It will probably be fixed in the future. I'm not sure either what they mean by Maybe let's just disable edit: some explanations here: https://code.visualstudio.com/docs/nodejs/working-with-javascript#_partial-intellisense-mode Adding the case still looks like a good idea, as otherwise the extension keep loading indefinitely when projectWideIntellisense is enabled |
(I've rebased my PRs on yours) |
@CGNonofr Thank you for your investigation. 👍 🎉 I can no longer push directly to this repo. Can you use this branch and merge this PR (if you are ok with the content)? Idea: Whenever this PR is ready, you merge it, but hold new releases until the other PRs are in. I would like to test the whole stack of changes tomorrow with |
note that the default value for projectWideIntellisense.enabled is already |
@CGNonofr Should I remove it then? I cannot put a comment directly above as it will break the JSON. Are you ok with the patch and the other changes? |
I don't think there is any more reason for it to be there compared to previous version
Does it? it seems it supports comments in json
Yup ! :) |
5f1cb57
to
8a99d13
Compare
Removed with last force push. Pushing directly It works gain. This is ready now ⬆️
so, it is actually jsonc 😉 |
typescript.tsserver.web.projectWideIntellisense.enabled can now be disabled
8a99d13
to
af57cb2
Compare
Following the guide:
What I usually do is:
vscodeRef
field)patch -p1 < /path/to/monaco-vscode-api/scripts/vscode.patch
git stash
git stash pop
git diff --staged > /path/to/monaco-vscode-api/scripts/vscode.patch
Now on the monaco-vscode-api side:
vscodeRef
vscode.patch
into this commit