Skip to content

vscode: duplicated (and wrong) end tag suggestions #107

@kristoff-it

Description

@kristoff-it

Note

If you opened this link from VSCode, this issue explains why we suggest to disable the builtin HTML extension in VSCode.

You can skip to the "How to Disable" section if you just want to learn how to do it.

SuperHTML as a language server implements all the main features needed by users in an equal or superior manner than what VSCode provides out of the box.

For this reason the SuperHTML VSCode extension will disable functionality from the VSCode builtin HTML extension to avoid showing duplicated completions, descriptions, etc.

The main setting that we disable is html.suggest.html5 since VSCode will suggest unconditionally always the full list of elements, while SuperHTML is capable of only showing what is appropriate to put in the body of a given element hiearchy.

This setting unfortunately will not disable end tag suggestions coming from VSCode, causing duplicate entries in the completions popup menu.

Until VSCode introduces an option to disable this suggestion, we recommend disabling the VSCode builtin HTML extension.

See upstream issue microsoft/vscode-html-languageservice#216 for more information.

Additionally VSCode will also generate wrong suggestions for closing elements. To reproduce this issue write the following in a new html document:

<html>

</html>

Then, in the body of <html> type < and watch VSCode wrongly suggest /html.

How to Disable

  1. Open the extensions sidebar
  2. Type in the search box @builtin html, this should give you two results:
    • HTML Language Basics
    • HTML Language Features
  3. Disable "HTML Language Features"
  4. (optional) Leave a 👀 reaction to this issue :^)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions