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

Sublime snippets doesn't show in autocomplete in ST4 #775

Open
felixcatto opened this issue May 28, 2021 · 5 comments
Open

Sublime snippets doesn't show in autocomplete in ST4 #775

felixcatto opened this issue May 28, 2021 · 5 comments

Comments

@felixcatto
Copy link

felixcatto commented May 28, 2021

ST4, TS plugin enabled
Screenshot from 2021-05-28 08-14-16

ST4, TS plugin disabled
Screenshot from 2021-05-28 08-16-26

ST4 4107
In ST3.2.2, build 3211 - all works fine

If there is no way to fix it. Maybe there is a way to disable typescript autocomplete and use default? I don't use TS, but i use this plugin because it gotoDefinition command is outstanding 🔥 . Even ST4 gotoDefinition doesn't match with it. And it costs nothing because i don't even need a tsconfig.

There is a setting auto_complete_api_completions_only which disables default autocomplete, but i need the opposite, i.e. disable TS autocomplete and enable default one.

@BrianWasTaken
Copy link

It's just broken on ST4

Eric-Guo added a commit to Eric-Guo/sublime-user-folder that referenced this issue Jun 3, 2021
@kulikalov
Copy link

@zhengbli @DanielRosenwasser any plans to fix this?

@orta
Copy link
Contributor

orta commented Jun 10, 2021

It's not road-mapped, you're welcome to give it a shot 👍🏻

@andfaulkner
Copy link

I second this - same problem. It occurred continuously for several weeks after upgrading (a couple of weeks ago), but I'm reliant enough on snippets that I recently wound up temporarily downgrading to Sublime 3, at which point they started working again. In my case, it's occurring for all ts and tsx snippets.

The Typescript completions popup box seems to be separate from the Typescript snippets popups box in Sublime Text 4, and the Typescript completions popup appears to dominate. I sometimes see a "flicker" of the snippets box, but disappears almost immediately after (within less than 1 second) and is replaced by the Typescript completions box instead. It also occasionally starts working briefly, but it's consistently short-lived.

Previously they were consolidated into one box.

I tried just about every combination of options available for the autocompletions, and the problem persisted.

@felixcatto
Copy link
Author

I found the official Sublime TS plugin, which is newer and doesn't have this bug :)

But it a little cluttered with various popups. So it is good to customize it. This is a quick guide.

To replace default sublime `GoToDefinition` add following keybinding
{ "keys": ["f12"], "command": "lsp_symbol_definition" },

For other available commands look at `Preferences -> Package Settings -> LSP -> Key Bindings`
For available customizations (popups, ...) look at `Preferences -> Package Settings -> LSP -> Settings`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants