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

0.40.7 volar.config.js unavailable,volar.config.js 配置无法失效 #1819

Closed
ChangLCS opened this issue Sep 5, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@ChangLCS
Copy link

ChangLCS commented Sep 5, 2022

Describe what happened: 0.40.7 volar.config.js unavailable,volar.config.js 配置无法失效

What was your system configuration?
Extension version: 0.40.7
Product and Version [VS/VSCode]: vscode 1.70.0
OS Version[macOS/Windows]: win7 x64

/* eslint-disable import/no-extraneous-dependencies */
const vetur = require('@volar-plugins/vetur');
const { volarPrettierPlugin } = require('@volar-plugins/prettier');
const prettyhtml = require('@volar-plugins/prettyhtml');

module.exports = {
  plugins: [
    vetur(),
    prettyhtml({
      printWidth: 100,
      useTabs: false,
      singleQuote: false,
      wrapAttributes: false,
      sortAttributes: true,
    }),
    volarPrettierPlugin({
      languages: ['css', 'scss', 'typescript', 'javascript'],
      html: {
        breakContentsFromTags: false,
      },
      useVscodeIndentation: false,
    }),
  ],
};

System Info
图片

升级到0.40.7之后,原来配置的 volar.config.js 失效了,上方是我的对应配置,降级到0.40.6,能正常使用。

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants