-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Javascript completion for react components does not display certain completion proposals #6720
Javascript completion for react components does not display certain completion proposals #6720
Comments
Have you tried with VS Code built-in typescript extensions? |
It works in vscode. We found the issue in the typescript language server and @danielmartin will provide a PR. |
@yyoncho You can use VS Code extension for TypeScript with Theia. It gives you a better to support. It's a bit cumbersome to get for now. @marcdumais-work Do you think it is already possible to get proper vsix file from your PR: eclipse-theia/vscode-builtin-extensions#15 We are going to drop support of Theia TypeScript extension soon. |
I just tried the React scenario above using the built-ins and it's not working well yet. I'll use this as a base to troubleshoot and report-back when I have made progress. |
That'd be bad, because I think this is the best LSP extension for TypeScript right now. Not everyone uses VSCode. This extension uses
I've debugged this problem already. What I saw is that the language server is missing a call to If you place a
Here's the JSON payload, as shown by VSCode when TS logging is enabled and the server is initializing:
|
It is still out there. We can make you a maintainer for this project or someone can fork it.
It is fixable, but someone has to test/review/land it and then upgrade Theia with the same process. You will need to find someone. cc @eclipse-theia/ecd-theia-committers |
I can now get Typescript to work nicely from the built-ins, but some manual intervention is required. Please see: eclipse-theia/vscode-builtin-extensions#15 (comment) |
Description
The completion does not work for React component.
Reproduction Steps
Setup:
Then the completion under React does not work unless you comment the import statement: here it is a gif demonstrating the behaviour.
OS and Theia version:
0.14.0-next
(or at least all components in about box are that version).The text was updated successfully, but these errors were encountered: