organizeImports saving in VSCode causes performance issue, CPU spinning
Author: jpike88Created Aug 7, 2023Updated Aug 8, 2023
LabelsS-Needs info
Environment information
CLI:
Version: 12.1.3
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
ROME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v16.14.2"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "npm/8.5.0"
Rome Configuration:
Status: Loaded successfully
Formatter disabled: true
Linter disabled: false
Organize imports disabled: false
VCS disabled: true
Workspace:
Open Documents: 0
Discovering running Rome servers...
Running Rome Server: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What happened?
organiseImports works quickly via CLI but has major performance issues in VSCode if enabled on save, what seems like some kind of super inefficient or infinite loop with CPU maxed out endlessly.
Expected result
It should be fast
Code of Conduct
- I agree to follow Rome's Code of Conduct
Source: rome/tools