Ferrum
Sign in Create account

Ferrum 0.6.0

Debugging shows more while a program is paused, tests and tasks run more reliably, and unsaved work is kept wherever it could have been lost.

Run and Debug

  • Debug Console input. Type an expression at the Debug Console to evaluate it in the paused frame.
  • Hover values. While paused, rest the pointer on a variable to see its value.
  • Threads. The Call Stack lists every thread of the program, so another thread's frames can be opened.
  • Unplaced breakpoints the debugger hasn't confirmed are drawn as rings in the gutter.
  • F5 starts the configuration chosen last. Select and Start Debugging picks again.
  • Breakpoints follow a file that is renamed or moved, keep their rows after a restart, and are sent again when edits move them. A file has one set of breakpoints however its path is spelled.
  • Variables such as ${workspaceFolder} are expanded in the command that starts a debugger too, so launch.json can name a virtual environment's python. A refused launch ends the session instead of leaving it waiting.

Tests and tasks

  • Changed files are saved before tests run, as VS Code does. It's a setting: "Save before running tests".
  • Tests are found in #[path] modules, in subfolders of tests/ and in libraries with a renamed target, and a deleted file's tests leave the Testing view.
  • Rerunning tests cuts the earlier run short, each workspace's tests run in their own terminal, and results are read whole from lines the terminal wrapped.
  • Very large test runs stay within Windows' command-line limit and the terminal's scrollback.
  • Background tasks (watchers) report their problems at the end of each cycle.
  • Tasks run, are found and stop in terminals moved into the editor area too.
  • dependsOn chains move on only when their own task finishes, and wait on a dependency that is already running.
  • Terminate Task also ends what the task's shell started.
  • A cargo task's args are passed to cargo, and two cargo tasks that differ only in their args, debug and release say, are both listed.

Editing and files

  • Change End of Line (LF or CRLF) from the Command Palette or the status bar. An unsaved change of line ending survives a restart.
  • UTF-16 files are saved as UTF-16. A character the file's encoding can't hold is no longer written as an &#NNNN; escape: the save says so, and saving again writes the file as UTF-8.
  • Compare with Saved, Show Diff, the History panel's diffs and the gutter's change marks read files in any encoding.
  • Leaving a diff keeps what you typed in it, in the file's own tab, as one step to undo. Saving inside a diff saves that tab too.
  • Text from an input method (IME) goes where a typed letter would, including Quick Open and dialogs.
  • Text scrolled sideways no longer draws over the line numbers.

Your unsaved work

  • Every save checks the file on disk first, Save All and autosave included, and asks before writing over a change made elsewhere.
  • Unsaved work survives a git checkout or pull, Replace in Files and Revert Selected Lines.
  • The copy kept across a restart keeps up with your typing and follows a renamed or moved file. A tab closed without saving stays closed.
  • A restored session comes back with the same column and tab in front, and puts unsaved work back in its own tab.
  • Format on save always saves. If the formatter hasn't answered after 5 seconds, or the language server stops, the file is saved without it.
  • Close Group no longer drops unsaved work: it says how many tabs to save or close first.

Language server

  • Renames, formatting, inlay hints, code lenses and code actions apply only to the text they were worked out for, and only in the tab that asked.
  • A rename across several files changes every file or none.
  • A renamed or moved file is reopened in the language server under its new name, and closing one of two tabs of a file no longer closes it there.
  • A hover that arrives after the pointer has moved off is dropped.

Fixes

  • The files of a repository's first commit open from the History panel, and Undo Last Commit works on a first commit.
  • Deleting a file or folder closes its tabs in every column, and no others.
  • tasks.json, launch.json and package.json are read when they start with a byte order mark.
  • A debugger that fails to start is no longer reported as a language server.
  • Closing a column leaves the keyboard on the column it was on.
  • Jumping to a file that won't open (too large, or binary) no longer moves the caret in another file.
  • On Windows, moving a folder carries tabs, breakpoints and history whose paths are spelled in a different case.
  • F2 renames the terminal when the terminal has the keyboard.
  • Save As stamps the file it saved to, so its next save doesn't ask about the old one.