lostintangent / gistpad

VS Code extension for managing and sharing code snippets, notes and interactive samples using GitHub Gists
https://aka.ms/gistpad
MIT License
937 stars 58 forks source link

Cause *Overlapping ranges are not allowed!* error when renaming symbol name #359

Closed SurpassHR closed 2 months ago

SurpassHR commented 2 months ago

Type: Bug

2024-06-30 16:46:23.860 [error] Error: Overlapping ranges are not allowed! at v.applyEdits (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:618:582) at H.xb (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:758:1185) at H.applyEdits (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:758:1065) at a.pushEditOperation (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:749:714) at H.vb (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:758:182) at H.pushEditOperations (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:756:616) at i.apply (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:810:8292) at c.apply (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:810:11051) at async p.o (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2202:24608) at async p.perform (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2202:24184) at async y.apply (vscode-file://vscode-app/d:/ProgramFiles/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2202:25957)

Extension version: 0.6.0 VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z) OS version: Windows_NT x64 10.0.22631 Modes:

I used vscode extension bisect to locate the bug source, and it turns out that the gistpad extension did cause this problem, because after I disabled gitspad ext, the problem solved.

https://github.com/lostintangent/gistpad/assets/47974229/aa58322a-b1d0-4e47-a462-c80d230b8752

I can provide more infomation if you need.

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i9-11900KB @ 3.30GHz (16 x 3302)| |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| |Load (avg)|undefined| |Memory (System)|31.59GB (22.03GB free)| |Process Argv|--crash-reporter-id 3f9cf22d-c1b4-4cb9-94b3-972a8ea648b2| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelc:31048052 dsvsc021:30996838 jg8ic977:31013176 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 impr_priority:31082723 ```