zignd / HTML-CSS-Class-Completion

:chocolate_bar: Visual Studio Code extension that provides CSS class name completion for the HTML class attribute based on the CSS files in your workspace
https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion
MIT License
254 stars 83 forks source link

editing an existing line breaks css class completion #125

Open 7twin opened 6 years ago

7twin commented 6 years ago

If I open a folder and then edit an existing lines classes (by adding space after the classes to trigger the intellisense) - the css class completion breaks entirely and doesn't ever show again until I close down everything, e.g. via "close folder". If I don't touch the existing lines and just add a test div and continue adding new lines, everything keeps working.

edit: specifically this line seems to break it: <input type="submit" value="Send" class="block--background-color-theme block--border-radius-3 float-right padding-10" /> - try to add anything after padding-10 and it breaks.

edit2: yes, even re-typing the mentioned line above manually - breaks after padding-10

VSCode: Version 1.22.0-insider

I am getting following error in console before it all breaks:

failed attempts to parse. List of the documents: (at C:\Users\XXX\.vscode-insiders\extensions\Zignd.html-css-class-completion-1.17.1\out\src\extension.js:64:21)
(at C:\Users\XXX\.vscode-insiders\extensions\Zignd.html-css-class-completion-1.17.1\out\src\extension.js:65:21)
7twin commented 6 years ago

Same issue in vscode-stable edit: with the plugin disabled the intellisense does not disappear/crash maybe it's an issue with too much css classes to load? though the only css files included are: jquery-ui, bootstrap 4 and one css file having ~200 lines

7twin commented 6 years ago

Deactivating the auto rename tag plugin (https://github.com/formulahendry/vscode-auto-rename-tag) solves the issue, but as soon as you activate it, the issue appears again, not sure which repo to report it on now, since it does still seem that this plugin has the issue.