vscode-autohotkey2-lsp icon indicating copy to clipboard operation
vscode-autohotkey2-lsp copied to clipboard

Class variable edit fails on getter/setter

Open RaptorX opened this issue 7 months ago • 0 comments

Type: Bug

As title explains, when editing a static class variable they get properly updated in methods but not on getter and setter definitions.

To reproduce select token, hit F2 and assign a name. The issue persists on fat arrow or normal function definitions.

class MyClass {
	static token   := ''
	static isValid {
		get => !!MyClass.token
		set => MyClass.token := value
	}

	static method() => MyClass.token

	method() => MyClass.token
}

class MyClass2 {
	static token   := ''
	static isValid {
		get {
			return !!MyClass.token
		}
		set {
			return MyClass.token := value
		}
	}

	static method()
	{
		return MyClass2.token
	}

	method()
	{
		return MyClass2.token
	}
}

Extension version: 2.4.8 VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:22.949Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (4 x 3198)
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.88GB (18.21GB free)
Process Argv --crash-reporter-id 3e042e59-cb22-4371-968a-6f3e35abe666
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
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
chatpanelt:31048053
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
legacy_priority:31082724
refactort:31093865
pythonrstrctxtcf:31093870

RaptorX avatar Jul 12 '24 01:07 RaptorX