withastro / language-tools

Language tools for Astro
MIT License
267 stars 52 forks source link

TypeScript "Move to File" quick fix action fails with Astro extension enabled #812

Open lunelson opened 7 months ago

lunelson commented 7 months ago

Type: Bug

Try selecting some code (function, type, whatever) in a TS file, and activating the "Move to File" action in the quickfix menu

Extension version: 2.7.5 VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:42:12.210Z) OS version: Darwin arm64 23.3.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |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
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|5, 4, 5| |Memory (System)|32.00GB (1.12GB free)| |Process Argv|--crash-reporter-id 3eeb5f38-28fb-4ce7-b7cf-15288234da3e| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww1:30959800 d34g3935:30971562 edj9j583:30969295 fegfb526:30973843 dsvsc020cf:30973509 ```
Princesseuh commented 7 months ago

This seems like an upstream issue, either in Volar or in TypeScript itself. Not sure.

Princesseuh commented 4 months ago

Upstream issue https://github.com/volarjs/services/issues/92