croft-software 0.2.232

VSCode-style TUI written in Rust
1
2
3
4
fix: A `tsc: build - <file>` task detected from a tsconfig is waited for until its build finishes when it runs as a `preLaunchTask`, as any task that is not a background task is.
feature: launch.json and tasks.json `${input:…}` variables work: croft reads the file's `inputs` and asks for each one once when the configuration or task starts, with a pick list for `pickString` (its default selected), a text box for `promptString` (prefilled, masked for `password`), and the answers shared with the preLaunchTask and a compound's members; Esc cancels quietly, and an id no `inputs` entry declares is named in the error.
feature: Transform to Snake Case, Camel Case, Pascal Case and Kebab Case, as in VS Code: the palette rewrites each identifier in the selection (or the word at each caret) as `user_name`, `userName`, `UserName` or `user-name`, splitting at `_`, `-` and case changes, so `parseHTTPResponse` becomes `parse_http_response`. VS Code keybindings for `editor.action.transformToSnakecase` and the other three now import.
feature: `files_associations` (VS Code's `files.associations`) picks the language a file opens in by glob, in user or workspace config: `{ "*.tpl": "html", "**/templates/*.txt": "html" }`. The highlighter and the language server both follow it, open tabs switch when it changes (unless their language was picked by hand), and `croft import-vscode` and a repo's `.vscode/settings.json` carry `files.associations` over.