Skip to content
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

The react file has no smart code prompt #87712

Closed
VitaminCtea opened this issue Dec 26, 2019 · 18 comments
Closed

The react file has no smart code prompt #87712

VitaminCtea opened this issue Dec 26, 2019 · 18 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@VitaminCtea
Copy link

  • VSCode Version: 1.41.1
  • OS Version: win10 1903

Steps to Reproduce:

  1. The react file has no smart code prompt
  2. Normal js files have smart prompts

Does this issue occur when all extensions are disabled?: Yes/No
Not sure

@kieferrm
Copy link
Member

@asas55858995 can you please provide more information? Best would be a small example with step by step instructions. Thank you!

@kieferrm
Copy link
Member

/needsMoreInfo

@vscodebot vscodebot bot added the info-needed Issue requires more information from poster label Dec 26, 2019
@vscodebot
Copy link

vscodebot bot commented Dec 26, 2019

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

@VitaminCtea
Copy link
Author

@kieferrm

  • VSCode Version: 1.41.1
  • OS Version: win10 1903

In the react file, For example:

  1. if I type in a field called func, the function panel should be prompted.
  2. The same is true for other keywords! Such as input con field, The prompt panel should show the console!

Normal JS file normal.
No tips now, I don't know what happened.
Long time ago used to install all these vscode plugins, But that didn't happen problem.
It's a pain to write code these days. It's like writing code in a journal, I wish I could get help.
Thank you!

Here is a list of plug-ins installed by vscode:

  1. auto-close-tag v0.5.6
  2. auto-rename-tag v0.1.1
  3. better-comments v2.0.5
  4. bracket-pair-colorizer v1.0.61
  5. change-case v1.0.0
  6. code-beautifier v2.3.3
  7. code-runner v0.9.15
  8. code-settings-sync v3.4.3
  9. code-spell-checker v1.7.20
  10. color-highlight v2.3.0
  11. color-info v0.5.1
  12. debugger-for-chrome v4.12.3
  13. docthis v0.7.1
  14. EditorConfig v0.14.4
  15. es7-react-js-snippets v2.5.0
  16. guides v0.9.3
  17. highlight-matching-tag v0.9.6
  18. html-css-class-completion v1.19.0
  19. html-snippets v0.2.1
  20. htmltagwrap v0.0.7
  21. indent-rainbow v7.4.0
  22. JavaScriptSnippets v1.7.2
  23. markdown-all-in-one v2.6.1
  24. markdown-preview-enhanced v0.5.0
  25. npm-intellisense v1.3.0
  26. open-in-browser v2.0.0
  27. output-colorizer v0.1.2
  28. path-intellisense v1.4.2
  29. polacode v0.3.4
  30. prettier-vscode v3.18.0
  31. project-manager v10.9.1
  32. react-redux-react-router-snippets v0.4.29
  33. regex v0.2.0
  34. sass-indented v1.7.1
  35. sass-lint v1.0.6
  36. simple-react-snippets v1.2.2
  37. sublime-babel-vscode v0.2.10
  38. todo-tree v0.0.162
  39. typescript-hero v3.0.0
  40. vetur v0.22.6
  41. vsc-material-theme v30.0.0
  42. vscode-css-peek v3.0.2
  43. vscode-eslint v2.0.11
  44. vscode-fileheader v0.0.2
  45. vscode-filesize v2.1.3
  46. vscode-gutter-preview v0.24.2
  47. vscode-html-css v0.2.3
  48. vscode-icons v9.6.0
  49. vscode-import-cost v2.12.0
  50. vscode-language-pack-zh-hans v1.41.2
  51. vscode-markdownlint v0.33.0
  52. vscode-npm-script v0.3.10
  53. vscode-todo-highlight v1.0.4
  54. vscode-typescript-tslint-plugin v1.2.3
  55. vscodeintellicode v1.2.2
  56. vue-snippets v0.1.11

@kieferrm kieferrm removed the info-needed Issue requires more information from poster label Dec 27, 2019
@jabczyk
Copy link

jabczyk commented Dec 27, 2019

Do You have jsconfig.json or tsconfig.json in the root directory?

@VitaminCtea
Copy link
Author

@jabczyk None! The project was generated by create-react-app scaffolding.

@jabczyk
Copy link

jabczyk commented Dec 28, 2019

@asas55858995 Looks like IntelliSense needs one. Create jsconfig.json (or tsconfig.json for TypeScript) and fill it with something like:

{
  "compilerOptions": {
    "target": "es6"
  }
}

@VitaminCtea
Copy link
Author

@jabczyk A jsconfig.js file was added to the root directory in your way, But the react file still doesn't have a smart prompt.
In the react file, the language pattern is Javascript react (Babel).
Is there any missing configuration? Previously, react files had prompts.

@VitaminCtea
Copy link
Author

I need help, Thank you!

@husseyexplores
Copy link

husseyexplores commented Dec 28, 2019

There are multiple issues like this. #87787, and #87728
I've downgraded my vscode to version 1.40 and IntelliSense is working again. You can try to do the same until this is fixed.

Background:
I was also working with React (Not with typescript), VSCode version 1.41.1, Windows 10 64-bit, 16GB RAM (~8Gb free). I was working on a project that worked perfectly fine on VSCode before. But now the IntelliSense stopped working after like 20 sec or so. I tried disabling all extensions, restart the computer, etc. but nothing seemed to work. Finally, I downgraded the VSCode version and IntelliSense worked again.

@VitaminCtea
Copy link
Author

@husseyexplores I don't know how to go back to the version, How do you do that? there was a problem with the synchronous extension before, it was reinstalled later! Hope the officially can fix it soon!
In addition, Can the authorities see my question?

@husseyexplores
Copy link

Go to this link
And click here (For windows)

There are options for Mac and Linux too.

@VitaminCtea
Copy link
Author

@husseyexplores Ok, Thank you very much!

@VitaminCtea
Copy link
Author

@husseyexplores I went back to version 1.40 and intellisense is working again! Thank you for your help!
We hope to fix this problem in the latest update plan, Otherwise I dare not update the new version!

@mjbvz
Copy link
Collaborator

mjbvz commented Dec 29, 2019

@asas55858995 Is your code stored on a different drive letter drive (not the c: drive?)

Also, using VS code 1.41 please try upgrading your workspace to use typescript@next by installing this extension. Does that fix the problem?

@mjbvz mjbvz added javascript JavaScript support issues info-needed Issue requires more information from poster labels Dec 29, 2019
@VitaminCtea
Copy link
Author

@mjbvz I have two disks, C and D. The code is in the D disk, while vscode is in the default installation path.
At presen, I used version 1.40. Dare not update!

@VitaminCtea
Copy link
Author

In the issues section, many people have encountered this problem

@mjbvz
Copy link
Collaborator

mjbvz commented Dec 30, 2019

Duplicate of microsoft/TypeScript#35512

As a workaround, upgrade your workspace to use typescript@next by installing this extension

@mjbvz mjbvz closed this as completed Dec 30, 2019
@mjbvz mjbvz added *duplicate Issue identified as a duplicate of another issue(s) upstream Issue identified as 'upstream' component related (exists outside of VS Code) and removed info-needed Issue requires more information from poster labels Dec 30, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

5 participants