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

Disable auto complete #118

Closed
IkorJefocur opened this issue Jun 10, 2022 · 9 comments
Closed

Disable auto complete #118

IkorJefocur opened this issue Jun 10, 2022 · 9 comments

Comments

@IkorJefocur
Copy link

A little background: I'm a real, i mean, 100% hater of autocomplete and all that popups over my code and intercepts keyboard controls. So I decided to cut off this feature at the root a years ago by setting "auto_complete": false in general Sublime's settings.
But today I have installed LSP-json for fast linting, highlighting erorrs, hints, etc. in my JSON files. But not for autocomplete. I never asked for this.
The problem is, even with "auto_complete": false, when that plugin enabled, Sublime showing me autocomplete popup at least when I starting to write property name.
And i don't know how to disable this behavior. Maybe I missing some option in plugin's configuration, but I rather guess it's some kind of a bug. Because I have installed a lot of plugins in my developer's life, and no one of them ever showed me an autocomplete interface with aforementioned option disabled.
If it is, after all, somehow, not a bug but a feature, I have a question "why?" and asking for help to disable it.

@jfcherng
Copy link
Contributor

You can do this in your LSP-json.sublime-settings.

{
    "disabled_capabilities": {
        "completionProvider": true,
    },
}

@IkorJefocur
Copy link
Author

Oh, really... Thanks, that helped.
But, anyway, I still have a question "why?". Shouldn't plugin take into account auto_complete option from Sublime's preferences?

@jfcherng
Copy link
Contributor

jfcherng commented Jun 10, 2022

Either way makes sense to me. Maybe someone doesn't want ST's autocompletion (since it's provided by "guessing") but wants to keep LSP's.

@IkorJefocur
Copy link
Author

Maybe it would be true if not the next problem i met. Plugin turns on default Sublime's autocomplete for JSON files! Autocomplete popup keep showing, but now it suggests me words that exists on other places inside opened file.

@jfcherng
Copy link
Contributor

Not sure what you mean. "completionProvider": true, turns on ST's autocompletion?

@IkorJefocur
Copy link
Author

No, autocompletion turns on no matter what value this option has, just if a plugin is installed and enabled. Setting completionProvider to true disables autocomplete suggestions from plugin, but not from Sublime.

@jfcherng
Copy link
Contributor

No, autocompletion turns on no matter what value this option has, just if a plugin is installed and enabled. Setting completionProvider to true disables autocomplete suggestions from plugin, but not from Sublime.

Makes sense to me.

@rchl
Copy link
Member

rchl commented Jun 10, 2022

My first thought is that auto_complete: false should also disable the on_query_completions API. If that would be the case then the LSP completions would also not show up. So maybe this should be a core bug.

@rchl
Copy link
Member

rchl commented Jun 29, 2022

This looks like this core issue: sublimehq/sublime_text#4240

Nothing to track in this repo so closing.

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

3 participants