re-ovo / unocss-intellij

Unocss support on Intellij Idea/WebStorm
https://plugins.jetbrains.com/plugin/22204-unocss
MIT License
169 stars 12 forks source link

非常卡,打字的时候直接CPU 100% #82

Closed DoveAz closed 2 weeks ago

DoveAz commented 2 weeks ago

Describe the bug 非常卡,已经是最新版了,配置足够,cpu 13700kf,64G内存, 然后我删除了这个插件,又重新装了一下,似乎不卡了,有没有可能是老版本插件的缓存会影响到新版本

To Reproduce Steps to reproduce the behavior: 随意打开一个unocss项目,在class里面按一下或几下空格 cpu就暴涨100%

Expected behavior 不卡

Screenshots If applicable, add screenshots to help explain your problem.

Environment Plugin Version: 1.73 IDE Version: 2024.2.1 Unocss Version(in package.json): 0.62.0

Unocss Config: // uno.config.ts import { defineConfig, presetIcons, presetTypography, presetUno, presetWebFonts, transformerDirectives, transformerVariantGroup, } from 'unocss'

export default defineConfig({ shortcuts: [ { card: 'shadow-card rounded-lg p-3', }, ], theme: { colors: { primary: '#2CCE9C', success: '#00B86E', danger: '#F34F5A', warning: '#F6CD5B', gold: '#F6CD5B', 'gray-b': '#BEC6C8', 'gray-a': '#A8B4B7', 'gray-8': '#89999D', 'gray-3': '#333333', }, boxShadow: { card: '0 2px 5px 1px rgba(81, 96, 91, 0.4)', }, }, presets: [ presetUno(), presetIcons(), presetTypography(), presetWebFonts({ fonts: { // ... }, }), ], transformers: [transformerDirectives(), transformerVariantGroup()], })

re-ovo commented 2 weeks ago

image 麻烦提供下性能分析报告 开启之后用1分钟然后停止,发我那个文件

DoveAz commented 2 weeks ago

image 麻烦提供下性能分析报告 开启之后用1分钟然后停止,发我那个文件

2024.2.1 似乎没这个按钮了。。 另外我又做了一些尝试,即使完全关闭 unocss,打字的时候仍然CPU占用很高,这可能还是 webstorm 本身的性能问题