We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 folder structure is as follows.
project_root/ <-- Open this folder in vscode foo/ dprint.json src/ index.js
dprint.json is follows.
dprint.json
{ "typescript": { }, "includes": ["src/**/*.{ts,tsx,js,jsx,cjs,mjs,json}"], "excludes": [ "**/node_modules" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.88.3.wasm", "https://plugins.dprint.dev/json-0.15.0.wasm" ] }
I want to format the index.js file.
index.js
Using CLI, following command formats index.js as expected.
cd project_root/foo dprint fmt
Using VSCode extension, Shift + Alt + F command does not format index.js.
Shift + Alt + F
I tried to change includes path to the relative path from the folder opened in vscode.
includes
"includes": ["foo/src/**/*.{ts,tsx,js,jsx,cjs,mjs,json}"],
This works.
I think that relative path should be based on location of dprint.json.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The folder structure is as follows.
dprint.json
is follows.I want to format the
index.js
file.Using CLI, following command formats
index.js
as expected.Using VSCode extension,
Shift + Alt + F
command does not formatindex.js
.I tried to change
includes
path to the relative path from the folder opened in vscode.This works.
I think that relative path should be based on location of dprint.json.
The text was updated successfully, but these errors were encountered: