vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Parentheses lost context

Open nawi-harta opened this issue 9 months ago • 1 comments

https://github.com/user-attachments/assets/ce280f51-dfd2-49de-935a-fc091b28ee5b

Type: Bug

This is happening to me about a month ago. Editing anything in the parentheses will destroy text content including the parentheses itself. This bug happen randomly, restarting the editor wont fix it, restarting the system will. Waking up the PC from sleep or hibernation seems to be the one of the cause.

VS Code version: Code 1.98.0 (6609ac3d66f4eade5cf376d1cb76f13985724bcb, 2025-03-04T21:06:18.612Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info
Item Value
CPUs AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx (8 x 2296)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 6.94GB (1.06GB free)
Process Argv --crash-reporter-id dd0a0dc8-472d-46c9-8dcd-2989b03d4be6
Screen Reader no
VM 0%
Extensions (25)
Extension Author (truncated) Version
vscode-sqlite ale 0.14.1
iconify ant 0.10.2
vscode-tailwindcss bra 0.14.8
vscode-eslint dba 3.0.10
prettier-vscode esb 11.0.0
auto-close-tag for 0.5.15
auto-rename-tag for 0.1.10
firebase-snippets has 0.0.1
firebase-explorer jsa 0.3.3
web-accessibility Max 0.2.83
dotenv mik 1.0.1
vscode-filesize mkx 3.2.2
vscode-typescript-next ms- 5.9.20250305
mdc Nux 0.2.0
nuxt-vscode-extentions Nux 0.0.7
nuxtr-vscode Nux 0.2.16
firebase-firestore-snippets Pet 0.0.8
nuxt-snippets pra 1.8.0
LiveServer rit 5.7.9
vs-code-prettier-eslint rve 6.0.0
code-spell-checker str 4.0.40
vsfire tob 1.4.1
vscode-icons vsc 12.11.0
volar Vue 2.2.8
nuxt-typescript-snippets wil 0.1.3
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
jda6j935:31233686

nawi-harta avatar Mar 06 '25 19:03 nawi-harta

That's not a problem. You just need to on num-lock and then press insert key. This problem will be gone.

ujjwalkur avatar Mar 07 '25 17:03 ujjwalkur

Hi @nawi-harta yes as the previous user mentioned it looks like you have insert or overtype mode disabled. You can toggle this off using the command View: Toggle Overtype/Insert Mode from the command palette. Could you please confirm that doing so fixes your issue?

aiday-mar avatar Mar 10 '25 08:03 aiday-mar

Hi, I can confirm that View: Toggle Overtype/Insert Mode fix the problem. And also this (toggle) is still happens randomly and I didn't know why. Thank you all for your time

nawi-harta avatar Mar 12 '25 05:03 nawi-harta

Hi thank you for the response. You are likely activating the keybinding associated to the action which toggle the insert mode. If you do not need this action, you can go into the keybinding editor, find the action entry, right click and select remove keybinding from the context menu. This will remove the keybinding and prevent you from activating the mode.

aiday-mar avatar Mar 17 '25 08:03 aiday-mar