VScode on web can't read .prettierrc from repo and uses default config #3594
Description
Summary
VSCode on web can't find .prettierrc
configuration file and defaults to settings that don't align with repo configuration
Github Repository to Reproduce Issue & Steps To Reproduce:
Easily reproducible on any GH pr by hitting .
and looking at prettier output, the prettier output will show that it cannot find the configuration
Expected result
Prettier follows the rules in the repo
Actual result
Prettier uses default rules
Additional information
This seems to be recent, and happens even if the prettierrc file is open
VS Code Version:
Visual Studio Code
Version: 1.96.0
Commit: 138f619c86f1199955d53b4166bef66ef252935c
Date: 2024-12-11T02:29:09.626Z (5 days ago)
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Prettier Extension Version:
11.0.0
OS and version:
VSCode on the web, via github
Prettier Log Output
["INFO" - 4:21:24 PM] Extension Name: dev.prettier-vscode.
["INFO" - 4:21:24 PM] Extension Version: 0.0.0.
["INFO" - 4:21:24 PM] Using standalone prettier
["INFO" - 4:21:24 PM] Using standalone prettier
["INFO" - 4:24:58 PM] Formatting vscode-vfs://github%2B7b2276223a312c22726566223a7b2274797065223a332c226964223a2232373837227d7d/gathertown/gather-town-v2/modules/gather-game-gateway-server/src/index.ts
["INFO" - 4:24:58 PM] Using standalone prettier
["INFO" - 4:24:58 PM] PrettierInstance:
{}
["INFO" - 4:24:58 PM] File Info:
{
"ignored": false,
"inferredParser": null
}
["WARN" - 4:24:58 PM] Parser not inferred, trying VS Code language.
["INFO" - 4:24:58 PM] No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration
["INFO" - 4:24:58 PM] Prettier Options:
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"singleAttributePerLine": false,
"bracketSameLine": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"embeddedLanguageFormatting": "auto",
"vueIndentScriptAndStyle": false,
"experimentalTernaries": false,
"filepath": "/gathertown/gather-town-v2/modules/gather-game-gateway-server/src/index.ts",
"parser": "typescript"
}
["INFO" - 4:24:58 PM] Formatting completed in 71ms.
["INFO" - 4:25:21 PM] Formatting vscode-vfs://github%2B7b2276223a312c22726566223a7b2274797065223a332c226964223a2232373837227d7d/gathertown/gather-town-v2/modules/gather-game-logic-server/src/index.ts
["INFO" - 4:25:21 PM] Using standalone prettier
["INFO" - 4:25:21 PM] PrettierInstance:
{}
["INFO" - 4:25:21 PM] File Info:
{
"ignored": false,
"inferredParser": null
}
["WARN" - 4:25:21 PM] Parser not inferred, trying VS Code language.
["INFO" - 4:25:21 PM] No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration
["INFO" - 4:25:21 PM] Prettier Options:
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"singleAttributePerLine": false,
"bracketSameLine": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"embeddedLanguageFormatting": "auto",
"vueIndentScriptAndStyle": false,
"experimentalTernaries": false,
"filepath": "/gathertown/gather-town-v2/modules/gather-game-logic-server/src/index.ts",
"parser": "typescript"
}
["INFO" - 4:25:21 PM] Formatting completed in 6ms.
["INFO" - 4:26:50 PM] Formatting vscode-vfs://github%2B7b2276223a312c22726566223a7b2274797065223a332c226964223a2232373837227d7d/gathertown/gather-town-v2/modules/gather-game-gateway-server/src/index.ts
["INFO" - 4:26:50 PM] Using standalone prettier
["INFO" - 4:26:50 PM] PrettierInstance:
{}
["INFO" - 4:26:50 PM] File Info:
{
"ignored": false,
"inferredParser": null
}
["WARN" - 4:26:50 PM] Parser not inferred, trying VS Code language.
["INFO" - 4:26:50 PM] No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration
["INFO" - 4:26:50 PM] Prettier Options:
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"singleAttributePerLine": false,
"bracketSameLine": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"embeddedLanguageFormatting": "auto",
"vueIndentScriptAndStyle": false,
"experimentalTernaries": false,
"filepath": "/gathertown/gather-town-v2/modules/gather-game-gateway-server/src/index.ts",
"parser": "typescript"
}
["INFO" - 4:26:50 PM] Formatting completed in 14ms.
["INFO" - 4:27:04 PM] Formatting vscode-vfs://github%2B7b2276223a312c22726566223a7b2274797065223a332c226964223a2232373837227d7d/gathertown/gather-town-v2/modules/gather-game-gateway-server/src/index.ts
["INFO" - 4:27:04 PM] Using standalone prettier
["INFO" - 4:27:04 PM] PrettierInstance:
{}
["INFO" - 4:27:04 PM] File Info:
{
"ignored": false,
"inferredParser": null
}
["WARN" - 4:27:04 PM] Parser not inferred, trying VS Code language.
["INFO" - 4:27:04 PM] No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration
["INFO" - 4:27:04 PM] Prettier Options:
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"singleAttributePerLine": false,
"bracketSameLine": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"embeddedLanguageFormatting": "auto",
"vueIndentScriptAndStyle": false,
"experimentalTernaries": false,
"filepath": "/gathertown/gather-town-v2/modules/gather-game-gateway-server/src/index.ts",
"parser": "typescript"
}
["INFO" - 4:27:04 PM] Formatting completed in 11ms.
["INFO" - 4:27:08 PM] Formatting vscode-vfs://github%2B7b2276223a312c22726566223a7b2274797065223a332c226964223a2232373837227d7d/gathertown/gather-town-v2/modules/gather-game-gateway-server/src/index.ts
["INFO" - 4:27:08 PM] Using standalone prettier
["INFO" - 4:27:08 PM] PrettierInstance:
{}
["INFO" - 4:27:08 PM] File Info:
{
"ignored": false,
"inferredParser": null
}
["WARN" - 4:27:08 PM] Parser not inferred, trying VS Code language.
["INFO" - 4:27:08 PM] No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration
["INFO" - 4:27:08 PM] Prettier Options:
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"singleAttributePerLine": false,
"bracketSameLine": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"embeddedLanguageFormatting": "auto",
"vueIndentScriptAndStyle": false,
"experimentalTernaries": false,
"filepath": "/gathertown/gather-town-v2/modules/gather-game-gateway-server/src/index.ts",
"parser": "typescript"
}
["INFO" - 4:27:08 PM] Formatting completed in 8ms.