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

Running 'Vue - Official' Formatter (configure) #5287

Open
MinuteReversal opened this issue Mar 19, 2025 · 3 comments
Open

Running 'Vue - Official' Formatter (configure) #5287

MinuteReversal opened this issue Mar 19, 2025 · 3 comments

Comments

@MinuteReversal
Copy link

MinuteReversal commented Mar 19, 2025

Vue - Official extension or vue-tsc version

2.2.8

VSCode version

Version: 1.98.2 (Universal) Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78 Date: 2025-03-12T13:32:45.399Z Electron: 34.2.0 ElectronBuildId: 11161602 Chromium: 132.0.6834.196 Node.js: 20.18.2 V8: 13.2.152.36-electron.0 OS: Darwin x64 24.3.0

Vue version

3.5.13

TypeScript version

5.8.0

System Info

System:
    OS: macOS 15.3.2
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
    Memory: 870.08 MB / 16.00 GB
    Shell: 5.2.37 - /usr/local/opt/bash/bin/bash
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    Yarn: 1.22.21 - /usr/local/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
    pnpm: 9.10.0 - ~/.nvm/versions/node/v20.12.2/bin/pnpm
  Browsers:
    Chrome: 134.0.6998.89
    Chrome Canary: 136.0.7075.0
    Safari: 18.3.1

package.json dependencies

{
  "dependencies": {
    "@element-plus/icons-vue": "^2.3.1",
    "@tailwindcss/vite": "^4.0.13",
    "axios": "^1.8.3",
    "element-plus": "^2.9.6",
    "pinia": "^3.0.1",
    "postcss": "^8.5.3",
    "sass": "^1.85.1",
    "sass-loader": "^16.0.5",
    "tailwindcss": "^4.0.13",
    "vant": "^4.9.17",
    "vue": "^3.5.13",
    "vue-i18n": "^11.1.2",
    "vue-material-design-icons": "^5.3.1",
    "vue-router": "^4.5.0"
  },
  "devDependencies": {
    "@tsconfig/node22": "^22.0.0",
    "@types/jsdom": "^21.1.7",
    "@types/node": "^22.13.9",
    "@vitejs/plugin-vue": "^5.2.1",
    "@vitejs/plugin-vue-jsx": "^4.1.1",
    "@vitest/eslint-plugin": "^1.1.36",
    "@vue/eslint-config-prettier": "^10.2.0",
    "@vue/eslint-config-typescript": "^14.5.0",
    "@vue/test-utils": "^2.4.6",
    "@vue/tsconfig": "^0.7.0",
    "eslint": "^9.21.0",
    "eslint-plugin-oxlint": "^0.15.13",
    "eslint-plugin-vue": "~10.0.0",
    "jiti": "^2.4.2",
    "jsdom": "^26.0.0",
    "npm-run-all2": "^7.0.2",
    "oxlint": "^0.15.13",
    "prettier": "3.5.3",
    "typescript": "~5.8.0",
    "vite": "^6.2.1",
    "vite-plugin-pwa": "^0.21.1",
    "vite-plugin-vue-devtools": "^7.7.2",
    "vitest": "^3.0.8",
    "vue-tsc": "^2.2.8"
  }
}

Steps to reproduce

当保存文件的时候会被格式化阻止保存文件,需要等1分钟然后右下角会弹出formatter对话框点击skip才会保存,如果不点skip则一直不会保存文件。非常影响开发速度。

When saving a file, it will be formatted to prevent the file from being saved, you need to wait for 1 minute, and then the formatter dialog box will pop up in the lower right corner, click skip to save, if you don't click skip, the file will not be saved. Very much influencing development.

Image

What is expected?

修复格式化速度或加一个跳过保存格式化代码的功能。目前我没有勾中保存格式化文件,但依然进行了格式化。

Fix formatting speed or add a feature to skip saving formatting code. At the moment I didn't check the box to save the formatted file, but I still formatted it.

Image

What is actually happening?

cmd+s保存/使用vim插件 :w/cmd+p -> save all file/也是一样的出现问题。

cmd+s save/use the vim plugin :w/cmd+p -> save all file/ is the same problem.

Link to minimal reproduction

No response

Any additional comments?

No response

@KazariEX
Copy link
Member

看起来这很可能是很多人碰到的保存卡顿问题,但在这之前一直没有人发 issue,所以我们对这个问题无从下手。不过我还没有找到稳定复现的方法,你方便的话可以来远程调试吗?

https://github.com/vuejs/language-tools/wiki/Help-Us-Investigate-Issues-Remotely

@lmpeng12
Copy link

看起来这很可能是很多人碰到的保存卡顿问题,但在这之前一直没有人发 issue,所以我们对这个问题无从下手。不过我还没有找到稳定复现的方法,你方便的话可以来远程调试吗?

https://github.com/vuejs/language-tools/wiki/Help-Us-Investigate-Issues-Remotely

这个问题今天依然出现。昨天还没有卡顿检测。

Image

@MinuteReversal
Copy link
Author

MinuteReversal commented Mar 21, 2025

有可能和网络有关

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

No branches or pull requests

3 participants