AxonDocs
Language Servers
Axon documentation

TypeScript and JavaScript

TypeScript and JavaScript language-server support in Axon.

TypeScript and JavaScript

typescript-language-server with TypeScript

Project-aware completions, hover, diagnostics, definitions, references, rename, formatting, symbols, and code actions for web projects.

Delivery

bundled npm server

Activation

.ts, .tsx, .js, .jsx, package.json, tsconfig.json, and jsconfig.json

Capabilities

Understands imports, JSX, project types, path aliases, workspace symbols, and external package APIs.
Uses tsconfig.json or jsconfig.json ownership to resolve module settings and included files.
Supports completions, hover, definition, references, rename, diagnostics, formatting, and code actions.

Setup

Open the folder that owns package.json and tsconfig.json or jsconfig.json.
Install dependencies before judging unresolved imported types.
Use config paths for aliases such as @/components or ~/lib.

Troubleshooting

If completions feel basic, verify the language server is attached to the active file model.
If definitions do not cross files, check workspace root and config ownership.
If local types are missing, confirm dependencies are installed and the file belongs to the expected config.

Package-Aware Completion

TypeScript and TSX completion includes exports from installed packages. Component and icon libraries can therefore appear as import candidates instead of limiting suggestions to symbols already present in the workspace.

Axon also supports TSX-aware React editing, themed embedded HTML, signature help, and external-definition navigation that prefers source files when a package provides them.

On this page