atishay / vscode-allautocomplete

Autocomplete from open files for VSCode
MIT License
104 stars 25 forks source link

Toggle suggestions from current file command giving error #98

Open kubiqsk opened 1 year ago

kubiqsk commented 1 year ago

Hello, I'm wondering if this extension works for someone and if it's not abandoned. I'm trying to move from SublimeText to VSCode and this is must-have for me, but after I installed this, nothing happend. I've tried to activate it with command and this happend image When I open CSS and HTML file, then I expect to have classes suggestions in HTML from CSS, but there is nothing.

atishay commented 1 year ago

The css issue is clearly stated in the readme. # collides with emmet and . is not supported by VSCode.

atishay commented 1 year ago

With updates 5 months back, why is this discussed as abandoned. There are no open pull requests suggesting abandonment. I am updating the description with the issue about the dialog. Please open a pull request if you need this early.

kubiqsk commented 1 year ago

Hello, thank you for the response, I'm glad this is still maintained and honestly I don't know how I didn't notice that 5 months old release, sorry for that.

So you're saying you can not collect all IDs and CLASSes from CSS and use them in autocomplete suggestions for HTML when I'm inside <div class="">? I don't really understand this problem, but I'll take a look on the source code and maybe I can help, but it won't be sooner than during the weekend... Maybe you can share more details where is actually that catch?

What about that screenshot error I've put in the first comment?

atishay commented 1 year ago

The screenshot error is genuine. I will look into it. The autocomplete cannot start from # or . But otherwise should work as long as there is no collisions. There have been known collisions with the PHP extension.

kubiqsk commented 1 year ago

but then it should work as my scenario is

CSS file:

.my-class{
    color: #fff;
}

and in HTML file i write

<div class="|"></div>

imagine that "|" is cursor and I start typing my-

according what you wrote is should suggest my-class or not?

Or maybe it's somehow related to that error from my screenshot and that's why it's not working?