rescript-lang / rescript-vscode

Official VSCode plugin for ReScript
MIT License
327 stars 55 forks source link

Code action: Extract module to file #983

Closed zth closed 3 months ago

zth commented 3 months ago

Adds a code action to extract a module to a separate file.

  1. Put your cursor on/inside of a defined module.
  2. Choose "Extract module as file"
  3. The locally defined module is now removed from the current file, and extracted into a separate ".res" next to the current file.