redhat-developer / redhat-developer/vscode-xml
xml.completion.autoCloseTags fails until leaving the editor window once
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 328
- Forks
- 101
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 7
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. First reproduce the issue using the listed Ctrl-N, Ctrl-K M, XML, and Ctrl-Tab steps, then trace the XML completion handling for new editors. Done means auto-closing produces immediately in a newly opened XML editor, without leaving and reopening the window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100