hoovercj / vscode-power-mode

Your code is powerful, unleash it! The extension made popular by Code in the Dark has finally made its way to VS Code.
MIT License
1.09k stars 90 forks source link

Typing with multiple cursors causes explosions after typing, blocks saving until finished. #78

Open AnthonyWeston opened 3 years ago

AnthonyWeston commented 3 years ago

Steps to Reproduce:

  1. Use Alt+Click to add several cursors to the current selection
  2. Type a line of text, for example This is a line of text to reproduce the problem for a GitHub issue.
  3. Immediately press Ctrl+S to save

Result:

I think this tends to interfere with other code actions that run on save such as automatic formatting, ESLint checking, etc.

Power Mode settings

"powermode.comboThreshold": 20,
"powermode.comboTimeout": 5,
"powermode.enabled": true,
"powermode.shakeIntensity": 0,

Environment info:

Version: 1.57.1 (user setup) Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48 Date: 2021-06-17T13:28:07.755Z Electron: 12.0.7 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Windows_NT x64 10.0.18362

hoovercj commented 2 years ago

@AnthonyWeston does this still reproduce? I'm not able to repro this.

I have set "powermode.explosionDuration": 5000 to make it obvious when the explosions disappear.

I have prettier configured in a project which replaces single quotes with double quotes.

When I use multiple cursors to insert strings on a dozen lines with single quotes and save, the single quotes are immediately replaced with double quotes and the explosions continue for the full 5 seconds.