CommandDescription
List FilesList all files in the workspace.
Read SourceRead an individual source file in the workspace.

List Files

List all files in the Nuanced LSP workspace.
> nuanced-lsp-ts list-files

CLI options

OptionDescriptionDefault
--lsp-url <url>Nuanced LSP base URL"http://127.0.0.1"
--lsp-port <n>Port for Nuanced LSP4444
--timeout <s>Timeout seconds (<=0 to skip)120

Result

Prints one path per line, e.g.:
eslint.config.js
jest.config.js
src/index.ts
src/utils.ts
...

Read Source

Read the full source of a file (or an optional range).
> nuanced-lsp-ts read-source src/index.ts
Read a range (0-indexed line:char-line:char):
> nuanced-lsp-ts read-source --range 0:0-10:5 src/index.ts

CLI options

OptionDescriptionDefault
file (argument)Path relative to workspace root
--range <line:char-line:char>Optional range (e.g. 0:0-10:5)
--lsp-url <url>Nuanced LSP base URL"http://127.0.0.1"
--lsp-port <n>Port for Nuanced LSP4444
--timeout <s>Timeout seconds (<=0 to skip)120

Result

Returns the file contents to stdout. Example (truncated):
import js from '@eslint/js';
import typescript from '@typescript-eslint/eslint-plugin';
...