styled-components / vscode-styled-components

Syntax highlighting for styled-components
MIT License
917 stars 118 forks source link

Enable autocomplete in styled function after installing `typescript-styled-plugin` #349

Closed tyankatsu0105 closed 2 years ago

tyankatsu0105 commented 2 years ago

Describe the bug (including copyable syntax) A clear and concise description of what the bug is. If you're planning on posting a screenshot, please paste the accompanying code here.

First, I can't be available autocomplete in styled function. However, After running npm install typescript-styled-plugin, I can use autocomplete!!. And also after uninstalling typescript-styled-plugin, I can keep using autocomplete!!! What's happened?

Screenshot Screenshots are alway useful!

Before installing typescript-styled-plugin

スクリーンショット 2022-01-04 15 25 56

After installing typescript-styled-plugin

スクリーンショット 2022-01-04 15 27 07

To Reproduce Steps to reproduce the issue, or JavaScript code that causes this failure. If you showed a screenshot, it will help a lot to paste accompanying code which matches

Expected behavior Explain what you expected to happen, and what is happening instead.

Enable autocomplete without running npm install typescript-styled-plugin.

Build environment (please complete the following information):

Additional context Add any other context about the problem here.

jasonwilliams commented 2 years ago

You’re using an old broken version. You need to be on 1.7.2 if you can’t get that version it’s because VSCode needs updating

tyankatsu0105 commented 2 years ago

Oops. Sorry. I understand. It's fixed when I installed that version of 1.7.2