Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move class to its own file refactoring creates file in wrong folder #5918

Closed
AArnott opened this issue Jul 13, 2023 · 2 comments
Closed

Move class to its own file refactoring creates file in wrong folder #5918

AArnott opened this issue Jul 13, 2023 · 2 comments
Assignees
Milestone

Comments

@AArnott
Copy link
Contributor

AArnott commented Jul 13, 2023

Type: Bug

I have a .cs file with 5 classes in a subfolder of my project. When using the 'Move to its own file' refactoring, the class is moved to a file in the project root directory instead of keeping it in the directory it was originally in.

I have C# Dev Kit installed and the solution loaded.

Extension version: 2.0.271-gdd5cb6a983
VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (16 x 2793)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
Load (avg) undefined
Memory (System) 63.95GB (37.56GB free)
Process Argv --folder-uri file:///c%3A/Users/andarno/source/repos/VisualStudio.Conversations --crash-reporter-id 9c78b15b-0d6e-432f-83a0-8d9f7be0e545
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes627:30244334
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30784848
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyonecf:30548226
282f8724:30602487
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30780429
pythonnosmt12:30779714
pythonidxpt:30784022
pythonnoceb:30776495
e537b577:30786199
dsvsc013cf:30784101

@arunchndr arunchndr modified the milestones: GA, Post GA Jul 20, 2023
@dibarbet dibarbet modified the milestones: Post GA, August Aug 2, 2023
@mrdamian
Copy link

mrdamian commented Aug 11, 2023

I have the same problem. It is reproducible on both Mac and Windows with the latest version C# v2.0.357.
It looks like this is a regression that were introduced in version 2.0.320.

As temporary solution I installed version v1.26.0 that works just fine

@Cosifne
Copy link
Member

Cosifne commented Aug 21, 2023

Fixed dotnet/roslyn#68995

@Cosifne Cosifne closed this as completed Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants