Skip to content

Refactor: move to new file does not work #51586

@jackfranklin

Description

@jackfranklin

Issue Type: Bug

I have an index.js file with two classes in ( I can share the github repo if that's useful)

class Field {...}

class Builder {...}

I am able to right click on the class name, select Refactor and then select Move to new file. However, when I do that, nothing happens. There are no errors in the developer tools, but no code is changed or new files created.

It's worth noting that other refactors (highlight some code + extract method) do work just fine.

I am running code with --disable-extensions to ensure it's not a problem with a package.

VS Code version: Code 1.24.0 (6a6e02c, 2018-06-06T17:30:30.113Z)
OS version: Darwin x64 16.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) m3-6Y30 CPU @ 0.90GHz (4 x 1100)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: unavailable_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 8.00GB (0.10GB free)
Process Argv /Applications/Visual Studio Code.app/Contents/MacOS/Electron --disable-extensions
Screen Reader no
VM 0%
Extensions disabled

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions