-
Notifications
You must be signed in to change notification settings - Fork 150
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
Add include and exclude #196
Conversation
update from upstream
update from upstream
update from upstream
@lucacasonato @bartlomieju @axetroy Ready for review |
Update from upstream
@CGQAQ The LSP crashes for me when I try to use this in a mixed Node and Deno project (denoland/doc_website) with this {
"deno.enable": true,
"deno.unstable": true,
"deno.include": ["api/docs.ts"]
} Extension host error:
My ts server log
|
@lucacasonato that's weird the only script I can see is |
Let me clarify: this did not work before either, but I thought that only including certain files would solve this issue. It seems it does not. That either means that this PR does not filter in all places it should, or more likely that we have another bug in the LSP that causes it to crash when its used on a folder that contains a Node project. |
Is the project opensource so I can test myself? the LSP is always running, I did not close the LSP, just add a flag that makes LSP features run conditionally |
Ok, I'll debug it |
So it seems the crash is happening outside of the extension in the tsserver? I guess we can land this with this bug (it is not new) and then I will do more debugging to see what causes this. |
Sure, we can land this, I think it's |
@lucacasonato Found it |
@lucacasonato @axetroy microsoft/vscode#106346, it seems configurePlugin is disbled above typescript 4.0.1 |
@lucacasonato The bug is likely fixed by vscode team in microsoft/vscode#106346, so we just need to wait vscode update |
I'll review this PR today still so we can land it. |
@CGQAQ It doesn't work for me even in a Deno only project: |
This comment has been minimized.
This comment has been minimized.
@CGQAQ Because you did not change the
The conclusion is: not easy to do The key is eg. vscode_deno/typescript-deno-plugin/src/plugin.ts Lines 154 to 175 in d61b8b1
This proxy how Typescript gets the configuration, but frankly, we don’t know its context It's hard to tell whether I should apply Deno's configuration and also this vscode_deno/typescript-deno-plugin/src/plugin.ts Lines 177 to 196 in d61b8b1
In the final analysis, the functions provided by Typescript plugins are not enough to do these things So far, I don’t have a good solution, if so, please let me know |
@axetroy I'm finding a way to unconfig the It's very hard to debug the plugin, I installed this, but still cant hit breakpoint, if you know what to do, please let me know @axetroy |
I also found this and tried to let breakpoint work, unluckily still doesn't work, struggling now @axetroy |
Where is the Deno namespace come from? vscode_deno/typescript-deno-plugin/src/plugin.ts Lines 185 to 189 in d61b8b1
dts loaded, but completion didn't work tsserver.log
|
didn't work either |
…o into add_include_and_exclude
Still don't get any response yet, if anyone knows how to solve this, please let me know |
Not possible for now |
Add include and exclude config
Part of roadmap 2 (#194)
Closes #75, Closes #50, Closes #39, Closes #60, Closes #87