Skip to content

xml.completion.autoCloseTags fails until leaving the editor window once #1068

Description

@kleinarne

In 0.28.2025031108, the xml.completion.autoCloseTags setting fails on new files until the editor window is left and reopened.

Steps to reproduce:

  • Open a new editor with Ctrl-N
  • Set the language to XML with Ctrl-K M "xml"
  • type <root>

Expected: </root> is added behind the cursor
Actual: <root> is not added

  • Now open another new editor with Ctrl-N
  • Return to the previous editor with Ctrl-Tab
  • Delete the <root> string
  • type <root>

Observe that </root> is now being added behind the cursor

I'm using VS Code on Windows 11:

Version: 1.98.2 (user setup)
Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78
Date: 2025-03-12T13:32:45.399Z (2 wks ago)
Electron: 34.2.0
ElectronBuildId: 11161602
Chromium: 132.0.6834.196
Node.js: 20.18.2
V8: 13.2.152.36-electron.0
OS: Windows_NT x64 10.0.22621

Activity

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