Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The formatter stopped formatting files when saving #81

Open
doox911 opened this issue Mar 22, 2024 · 2 comments
Open

The formatter stopped formatting files when saving #81

doox911 opened this issue Mar 22, 2024 · 2 comments

Comments

@doox911
Copy link

doox911 commented Mar 22, 2024

VSCode:

Version: 1.87.2 (user setup)
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
Date: 2024-03-08T15:20:17.278Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22000

Plugin version:

Name: Dprint Code Formatter
Id: dprint.dprint
Description: Formats code in VSCode using dprint.
Version: 0.16.0
Publisher: dprint
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=dprint.dprint

The problem is observed only in the latest version of the editor on operating systems Windows and MacOS.

@dsherret
Copy link
Member

I haven't had any issues on mac, windows, or linux. Can you provide a reproduction and also can you double check your vscode user and workspace settings are configured to format with dprint? Also, maybe set the vscode setting: "dprint.verbose": true then in vscode select "View > output" then select "dprint" in the drop down to see what it's logging.

Also, what happens if you use the command pallete to manually do "Format document with..." and select "dprint"?

@madcampos
Copy link

I've found a similar situation but only when the setting editor.formatOnSaveMode is anything other than file.

If it is set to another option (modifications or modificationsIfAvailable) dprint will not format the file on save, but triggering the command to format the file will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants