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

[Performance] [All] 由于组件库导致 Volar VSCode 卡顿问题 #16575

Open
WangJincheng4869 opened this issue Apr 19, 2024 · 6 comments
Open

Comments

@WangJincheng4869
Copy link

Bug Type: Performance

Environment

  • Vue Version: 3.4.23
  • Element Plus Version: 2.6.3
  • Browser / OS: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
  • Build Tool: Vite

Reproduction

Related Component

  • All

Reproduction Link

Github Repo

Steps to reproduce

这真是一个非常诡异的现象,当我尝试删除项目中的 element-plus 后卡顿的确就消失了,我用的是自动导入的方式。

What is Expected?

不会导致 VSCode 卡顿

What is actually happening?

导致 VSCode 的提示功能卡顿

Additional comments

由于本人就是个菜鸡,没办法给出合理的解释,只能劳烦各位大神了。

@warmthsea
Copy link
Contributor

降 Volar 版本

@WangJincheng4869
Copy link
Author

降 Volar 版本

老版本的那个 TS 插件不让安装了...

@warmthsea
Copy link
Contributor

warmthsea commented Apr 20, 2024

高版本我不太清楚,我最近一直在使用 2.0.2版本好像没遇到什么问题,没必要降低到 2.0 以下

@makedopamine
Copy link
Contributor

#16111 应该可以优化这个问题, 刚才发布到了npm上,你可以安装测试下。如果有比较大的改善,可以反馈一下,我会尽快推进这个PR

  "dependencies": {
    "element-plus": "npm:@makedopamine/element-plus",
  }

@WangJincheng4869
Copy link
Author

@makedopamine 经过测测效果显著,虽然偶尔提示依旧会有卡顿(但是卡顿时间也比之前短特别多)。但是比之前强太多了,之前是几乎必卡,偶尔不卡。

@Cheerwhy
Copy link
Contributor

#16111 应该可以优化这个问题, 刚才发布到了npm上,你可以安装测试下。如果有比较大的改善,可以反馈一下,我会尽快推进这个PR

  "dependencies": {
    "element-plus": "npm:@makedopamine/element-plus",
  }

效果显著

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

No branches or pull requests

4 participants