镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Disabling autocompletion in comments #161

Open

Description

@Theome

When writing comments in Lua, the autocompletion suggests words while typing. This happens without a delay and after typing the first letter of a word. I found the quickly flashing suggestions very distracting and wanted to disable them.

I assumed that I could change this in the Lua section in the settings, and tried this:

    "Lua.completion.enable": false,
    "Lua.completion.showWord": "Disable",
    "Lua.completion.workspaceWord": false,

This didn't fix the issue, and I still saw the suggestions.

Screenshot

I opened an issue here: LuaLS/lua-language-server#2988

As noted in a comment on that issue, vscode-lua overrides the editor.quickSuggestions setting. This was unexpected to me. It would be helpful if this could be changed or documented.

Activity

  1. Gaiko-sw commented on Mar 27, 2025

    @Gaiko-sw

    I was struggling with this for a while as well, for all suggestions. I don't want popup suggestions and thought my vscode configuration was wrong. I don't think the extension should be overriding the option like this.
    After applying the configuration in settings.json as mentions in the LuaLS issue, to match my normal settings with "inline", it's acting how I would expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions