跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[JetBrains] 终于找到卡顿的原因了

发表于
现版本:
WebStorm 2024.1.5

项目:
vue2 + js

先说结论:
语言和框架〉 TypeScript 〉 Vue 不要选择自动,个人感觉是 @vue/language-server 性能不行。

心路历程:
之前刚升级 2024.1 的时候就非常卡,论坛也有人说卡,最终官方也确认了是 BUG 。

https://www.v2ex.com/t/1031560#reply41

https://youtrack.jetbrains.com/issue/WEB-65787

然后官方在 2024.1.1 版本更新中修复了这个 BUG 。

更新之后确实好了很多,但是相比 2023.3.7 来说还是没有那么流畅,总觉得哪里怪怪的,而且经常会看到 CPU 占用 100%,我当时想着官方应该会持续优化,直到 2024.1.5 ,它还是这个样子。

然后今天决定排查一下是不是某些插件引起的,我把所有插件全部禁用,然后按分组依次打开,最终排查到是 node 引起的,但是前端又不可能把 node 关掉,我就去把非项目相关的全部取消勾选了,由于是 js 项目,我就把 ts 语言服务给关掉了,然后就不卡了,最终找到是 vue 那个 @vue/language-server 导致的卡顿。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.