Closed markchagers closed 8 months ago
I noticed that HTML does appear in the languageSelector array, but is absent from the rangeLanguageSelector. Could that have anything to do with this issue? I searched for a way to add it to this array, but could not find anything.
I'm having the same issue but with CSS files.
(Format document works, format selection shows me the "Configure Default Formatter" popup)
Its not supported.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Summary
When formatting html files with prettier-vscode configured as html-formatter, the VSCode command "Format selection" does not work. The command "Format Document" works as expected.
Github Repository to Reproduce Issue
issue-repo
Steps To Reproduce:
Expected result
The selected line(s) in the html file should be formatted
Actual result
An error pops up with the following text: Configure Default Formatter Extension 'Prettier - Code formatter' is configured as formatter but it cannot format 'HTML'-files Sometimes, usually right after starting VSCode, the error does not appear, but the command still does nothing. On all subsequent attempts the error appears.
Additional information
VS Code Version:
Version: 1.85.1 Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 Date: 2023-12-13T09:48:06.308Z (1 wk ago) Electron: 25.9.7 ElectronBuildId: 25551756 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin x64 22.6.0
Prettier Extension Version:
v10.1.0
OS and version:
Mac OS Ventura 13.6.3 13.6.3 (22G436)
Prettier Log Output