AdamMaras / vscode-overtype

Because some people actually press the Insert key on purpose.
https://marketplace.visualstudio.com/items?itemName=adammaras.overtype
BSD 2-Clause "Simplified" License
33 stars 15 forks source link

Editor to become unresponsive when both Overtype and Highlight Matching Tag extensions are enabled #34

Closed rbolsius closed 1 year ago

rbolsius commented 1 year ago

Type: Bug

When the Highlight Matching Tag extension and the Overtype extensions are both enabled, VS Code becomes unresponsive to keypresses when inserting new text into medium to large XML files. Delays when typing begin to be observable even with XML files 256KB in size, and editing XML files 1MB or 2MB in size is impossible. Some keyboard actions like backspace and delete are still responsive, but typing any new characters results in nothing being inserted.

In the developer tools console there are many messages like the following.

INFO UNRESPONSIVE extension host: starting to profile NOW

When either one of these extensions is enabled by itself, VS code responds immediately to keystrokes when editing larger XML files. However, when just these two extensions are enabled, even XML files around 256KB begin to show significant delays when typing.

Extension version: 0.2.0 VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:21:11.906Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|15.83GB (4.56GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
rbolsius commented 1 year ago

I'm somewhat leaning toward this being an issue primarily with the Overtype extension since even when Highlight Matching Tag is disabled, typing new characters into large XML files (>2MB) is still lagging by 1 to 2 seconds when Overtype is installed, but both extensions seem to be contributing to even more significant delays when installed together.

rbolsius commented 1 year ago

Since this extension hasn't been updated in a long time and there is a more recently maintained fork (https://github.com/DrMerfy/vscode-overtype), I'm closing this issue and will follow up with the drmerft.vscode-overtype extension instead.