-
Notifications
You must be signed in to change notification settings - Fork 35
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
Snippets not working as expected in 4107 #4254
Comments
They are still there: Two things have changed:
So hitting tab right after The following settings also control whether snippets are sugessted in auto completion at all or only when explicitly requesting them.
If you want auto completion panel being displayed while typing you might want to tweak
|
Brilliant. Thank you! |
I've set both settings to
I have this snippet with the
But it's nowhere to be found: To actually trigger the snipper I have to close the autocompletions with ESC and then press tab. This is really annoying. |
The amount of completion items which are added to the popup has been limited. My hunch is that those snippets popably haven't been selected due to several other candidates being judged more relevant. Not to call it a solution but hitting ctrl+space in exactly the situation of the screenshot should add the snippet as a snippet whose trigger exactly matches the typed word has maximum relevance. |
The snippet doesn't appear either when using ctrl+space. In fact, nothing happens when doing that. I've explicitly added this to my key bindings to test this out, but nothing.
These are my key bindings:
|
Does it appear in the list if just type |
Hmmm no, it doesn't appear either. So I decided to remove a bunch of packages and it's working now: After reinstalling some of the packages it seems the culprit was the TypeScript package. |
Keep that package away from ST. It's bloated bullshit. JSX / TS syntax is supported out of the box. Completions may be accomplished via LSP and LSP-typescript. |
Not sure if at least https://forum.sublimetext.com/t/user-snippets-not-working-properly/57942 is to be treated as bug. |
Command Command Over all, it seems like snippets support is broken. |
Removing the TS package solved this for me! |
@shaunmichaelwalker yes! removing TypeScript package immediately brought back my snippets into autocomplete. I even removed my previous attempt adding: In 4107, missing snippets in autocomplete seems very linked to TypeScript package. I added "TypeScript Syntax" package instead, and i get my syntax highlighting working with my snippets! All is well. |
ST 4xxx includes built-in typescript syntax. You should remove the |
Had a similar problem with my snippets and replacing the |
Thank you @deathaxe! Removing the TypeScript package also brought back my snippets. 🙌 🏆 |
Description
After updating to new version, snippets with the same tabTrigger are being ignored except for the last one alphabetically.
Steps to reproduce
div
and hit tab keyExpected behavior
<div class="name"></div>
Actual behavior
<div id="name"></div>
Environment
The text was updated successfully, but these errors were encountered: