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
prettier-vscode
prettier.config.mjs
prettier-vscode doesn't respond to changes in prettier.config.mjs until the workspace reloads.
https://github.com/hamirmahal/config-mjs-formatting
If prettier.config.mjs changes, prettier-vscode applies formatting based on the new rules in prettier.config.mjs.
If prettier.config.mjs changes, prettier-vscode runs formatting rules based on an old version of the file.
VS Code Version:
Version: 1.88.1 Commit: e170252f762678dec6ca2cc69aba1570769a5d39 Date: 2024-04-10T17:34:12.840Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Linux x64 6.5.0-28-generic snap
Prettier Extension Version: v10.4.0
v10.4.0
OS and version:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy
["INFO" - 4:40:34 PM] Extension Name: esbenp.prettier-vscode. ["INFO" - 4:40:34 PM] Extension Version: 10.4.0. ["DEBUG" - 4:40:34 PM] Enabling Prettier globally { "languageSelector": [ { "language": "javascript" }, { "language": "mongo" }, { "language": "javascriptreact" }, { "language": "typescript" }, { "language": "typescriptreact" }, { "language": "json" }, { "language": "jsonc" }, { "language": "json5" }, { "language": "css" }, { "language": "postcss" }, { "language": "less" }, { "language": "scss" }, { "language": "handlebars" }, { "language": "graphql" }, { "language": "markdown" }, { "language": "mdx" }, { "language": "html" }, { "language": "vue" }, { "language": "yaml" }, { "language": "ansible" }, { "language": "home-assistant" }, { "language": "jsonc", "scheme": "vscode-userdata" } ], "rangeLanguageSelector": [ { "language": "javascript" }, { "language": "javascriptreact" }, { "language": "typescript" }, { "language": "typescriptreact" }, { "language": "json" }, { "language": "jsonc" }, { "language": "graphql" } ] } ["DEBUG" - 4:40:55 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["DEBUG" - 4:40:55 PM] Using prettier version 3.2.5 ["DEBUG" - 4:40:56 PM] Enabling Prettier for Workspace /home/hamir/config-mjs-formatting { "languageSelector": [ { "pattern": "/home/hamir/config-mjs-formatting/**/*.{js,_js,bones,cjs,es,es6,frag,gs,jake,javascript,jsb,jscad,jsfl,jslib,jsm,jspre,jss,mjs,njs,pac,sjs,ssjs,xsjs,xsjslib,wxs,js.flow,jsx,ts,cts,mts,tsx,importmap,json,4DForm,4DProject,avsc,geojson,gltf,har,ice,JSON-tmLanguage,mcmeta,tfstate,tfstate.backup,topojson,webapp,webmanifest,yy,yyp,jsonc,code-snippets,sublime-build,sublime-commands,sublime-completions,sublime-keymap,sublime-macro,sublime-menu,sublime-mousemap,sublime-project,sublime-settings,sublime-theme,sublime-workspace,sublime_metrics,sublime_session,json5,css,wxss,pcss,postcss,less,scss,handlebars,hbs,graphql,gql,graphqls,md,livemd,markdown,mdown,mdwn,mkd,mkdn,mkdown,ronn,scd,workbook,mdx,component.html,html,hta,htm,html.hl,inc,xht,xhtml,mjml,vue,yml,mir,reek,rviz,sublime-syntax,syntax,yaml,yaml-tmlanguage,yaml.sed,yml.mysql,code-workspace}", "scheme": "file" }, { "language": "javascript" }, { "language": "mongo" }, { "language": "javascriptreact" }, { "language": "typescript" }, { "language": "typescriptreact" }, { "language": "json" }, { "language": "jsonc" }, { "language": "json5" }, { "language": "css" }, { "language": "postcss" }, { "language": "less" }, { "language": "scss" }, { "language": "handlebars" }, { "language": "graphql" }, { "language": "markdown" }, { "language": "mdx" }, { "language": "html" }, { "language": "vue" }, { "language": "yaml" }, { "language": "ansible" }, { "language": "home-assistant" }, { "language": "jsonc", "scheme": "vscode-userdata" } ], "rangeLanguageSelector": [ { "language": "javascript" }, { "language": "javascriptreact" }, { "language": "typescript" }, { "language": "typescriptreact" }, { "language": "json" }, { "language": "jsonc" }, { "language": "graphql" } ] } ["DEBUG" - 4:41:01 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["DEBUG" - 4:41:01 PM] Using prettier version 3.2.5 ["INFO" - 4:41:01 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:41:02 PM] Formatting file:///home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:02 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:02 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:02 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:02 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 5, "version": "3.2.5" } ["INFO" - 4:41:02 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:02 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:02 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:02 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/prettier.config.mjs", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:02 PM] Formatting completed in 133ms. ["INFO" - 4:41:07 PM] Formatting file:///home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:07 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:07 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:07 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:07 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 9, "version": "3.2.5" } ["INFO" - 4:41:07 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:07 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:07 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:07 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/prettier.config.mjs", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:07 PM] Formatting completed in 5ms. ["DEBUG" - 4:41:14 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:14 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:41:21 PM] Formatting file:///home/hamir/config-mjs-formatting/index.js ["DEBUG" - 4:41:21 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:21 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:21 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:21 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 16, "version": "3.2.5" } ["INFO" - 4:41:21 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:21 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:21 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:21 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/index.js", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:21 PM] Formatting completed in 9ms. ["INFO" - 4:41:26 PM] Formatting file:///home/hamir/config-mjs-formatting/index.js ["DEBUG" - 4:41:26 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:26 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:26 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:26 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 20, "version": "3.2.5" } ["INFO" - 4:41:26 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:26 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:26 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:26 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/index.js", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:26 PM] Formatting completed in 7ms. ["INFO" - 4:41:29 PM] Formatting file:///home/hamir/config-mjs-formatting/index.js ["DEBUG" - 4:41:29 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:29 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:29 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:29 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 24, "version": "3.2.5" } ["INFO" - 4:41:29 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:29 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:29 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:29 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/index.js", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:29 PM] Formatting completed in 4ms. ["DEBUG" - 4:41:30 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:30 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:31 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:31 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:32 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:32 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:41:33 PM] Formatting file:///home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:33 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:33 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:33 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:33 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 37, "version": "3.2.5" } ["INFO" - 4:41:33 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:33 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:33 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:33 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/prettier.config.mjs", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:33 PM] Formatting completed in 5ms. ["DEBUG" - 4:41:34 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:34 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:41:35 PM] Formatting file:///home/hamir/config-mjs-formatting/index.js ["DEBUG" - 4:41:35 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:35 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:35 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:35 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 44, "version": "3.2.5" } ["INFO" - 4:41:35 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:35 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:35 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:35 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/index.js", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:35 PM] Formatting completed in 4ms. ["DEBUG" - 4:41:36 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:36 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:41:42 PM] Formatting file:///home/hamir/config-mjs-formatting/index.js ["DEBUG" - 4:41:42 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:42 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:42 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:42 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 51, "version": "3.2.5" } ["INFO" - 4:41:42 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:42 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:42 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:42 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/index.js", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:42 PM] Formatting completed in 4ms. ["DEBUG" - 4:41:44 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:44 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:41:51 PM] Formatting file:///home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:51 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:51 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:51 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:51 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 58, "version": "3.2.5" } ["INFO" - 4:41:51 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:41:51 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:41:51 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:41:51 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/prettier.config.mjs", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:41:51 PM] Formatting completed in 5ms. ["DEBUG" - 4:41:56 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:56 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:41:56 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:41:56 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:42:03 PM] Formatting file:///home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:03 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:03 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:03 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:03 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 68, "version": "3.2.5" } ["INFO" - 4:42:03 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:42:03 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:42:03 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:42:03 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/prettier.config.mjs", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:42:03 PM] Formatting completed in 4ms. ["INFO" - 4:42:12 PM] Formatting file:///home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:12 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:12 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:12 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:12 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 72, "version": "3.2.5" } ["INFO" - 4:42:12 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:42:12 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:42:12 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:42:12 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/prettier.config.mjs", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:42:12 PM] Formatting completed in 4ms. ["INFO" - 4:42:18 PM] Formatting file:///home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:18 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:18 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:18 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:18 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 76, "version": "3.2.5" } ["INFO" - 4:42:18 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:42:18 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:42:18 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:42:18 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/prettier.config.mjs", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:42:18 PM] Formatting completed in 3ms. ["DEBUG" - 4:42:18 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:18 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:22 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:22 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:42:24 PM] Formatting file:///home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:24 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:24 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:24 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:24 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 86, "version": "3.2.5" } ["INFO" - 4:42:24 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:42:24 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:42:24 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:42:24 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/prettier.config.mjs", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:42:24 PM] Formatting completed in 20ms. ["DEBUG" - 4:42:25 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:25 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:25 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:25 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:27 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:27 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:27 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:27 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:41 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:41 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:49 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:49 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:42:59 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:42:59 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["INFO" - 4:43:01 PM] Formatting file:///home/hamir/config-mjs-formatting/index.js ["DEBUG" - 4:43:01 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:43:01 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:43:01 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:43:01 PM] PrettierInstance: { "modulePath": "/home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs", "importResolver": {}, "callMethodResolvers": {}, "currentCallMethodId": 111, "version": "3.2.5" } ["INFO" - 4:43:01 PM] Using ignore file (if present) at /home/hamir/config-mjs-formatting/.prettierignore ["INFO" - 4:43:01 PM] File Info: { "ignored": false, "inferredParser": "babel" } ["INFO" - 4:43:01 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used ["INFO" - 4:43:01 PM] Prettier Options: { "filepath": "/home/hamir/config-mjs-formatting/index.js", "parser": "babel", "tabWidth": 4, "trailingComma": "es5" } ["INFO" - 4:43:01 PM] Formatting completed in 4ms. ["DEBUG" - 4:43:12 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:43:12 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:43:25 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:43:25 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs ["DEBUG" - 4:44:03 PM] Local prettier module path: /home/hamir/config-mjs-formatting/node_modules/prettier/index.cjs ["INFO" - 4:44:03 PM] Using config file at /home/hamir/config-mjs-formatting/prettier.config.mjs
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
I saw some other issues complaining about this, also running into the same issue, would be really nice for this to be resolved.
@fisker I was wondering if you had any insights into this.
There is an issue about the config cache prettier/prettier#16234
This issue has been labeled as stale due to inactivity. Reply to keep this issue open.
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.
No branches or pull requests
Summary
prettier-vscode
doesn't respond to changes inprettier.config.mjs
until the workspace reloads.Github Repository to Reproduce Issue
https://github.com/hamirmahal/config-mjs-formatting
Steps To Reproduce:
prettier.config.mjs
, and save a file affected by formatting rules.Expected result
If
prettier.config.mjs
changes,prettier-vscode
applies formatting based on the new rules inprettier.config.mjs
.Actual result
If
prettier.config.mjs
changes,prettier-vscode
runs formatting rules based on an old version of the file.VS Code Version:
Prettier Extension Version:
v10.4.0
OS and version:
Prettier Log Output
Prettier Log Output
The text was updated successfully, but these errors were encountered: