Skip to content

emmet.showExpandedAbbreviation: never doesn't disable Emmet abbreviation autocomplete #10

Open
@karlhorky

Description

@karlhorky

Hi there, first of all, thanks for this plugin! Very nice to have CSS features in JS/TS 🙌

I am using this plugin via the vscode-styled-components extension (styled-components/vscode-styled-components#57 introduced Emmet into this extension)

However, I do not want to use Emmet at all. I don't mind if it would just appear and not break my workflow, but it causes some very strange things to happen when typing h1, h2, h3 within a css tagged template literal:

Kapture.2021-11-12.at.21.12.08.mp4

Apparently it should possible to disable Emmet with the settings below (which should work according to the VS Code docs and the typescript-styled-plugin docs)

  "emmet.showExpandedAbbreviation": "never",

However, this doesn't work.

The only way to disable this is with the following settings, which also disables other suggestions:

  "editor.quickSuggestions": {
    "other": false
  }

Originally reported in:

Activity

jasonwilliams

jasonwilliams commented on Apr 5, 2023

@jasonwilliams
Collaborator

@karlhorky did you want to have a go working on this? It shouldn't be too difficult.
The styled components extension may need to send the setting up into the language server and from there we can choose not to show emmet.

The deno plugin receives an info object which has the config in it. You can see it here:
https://github.com/denoland/vscode_deno/blob/main/typescript-deno-plugin/src/index.ts#L102-L111

This plugin is equivalent so it should be able to receive the same thing

karlhorky

karlhorky commented on Apr 6, 2023

@karlhorky
Author

I have a bunch of feature work, ongoing projects and then open source work that would come ahead of this unfortunately, but maybe closer to summer / fall 2023 I'll have some time.

RageCrezz

RageCrezz commented on Jan 5, 2024

@RageCrezz

Any updates regarding this issue? Emmet Abbreviations are a pain.

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

        Participants

        @jasonwilliams@karlhorky@RageCrezz

        Issue actions

          `emmet.showExpandedAbbreviation: never` doesn't disable Emmet abbreviation autocomplete · Issue #10 · styled-components/typescript-styled-plugin