@fannheyward/coc-ts
Heyward FannTypeScript 7+ language features for coc.nvim
Published Package Summary
coc-ts
TypeScript 7+ language features for coc.nvim.
This extension intentionally targets TypeScript 7 and newer. For TypeScript 6 and older, use coc-tsserver.
Hover
Repeat :call CocActionAsync('doHover') at the same position to expand type definitions one level at a time. When the server can expand further, the hover includes a hint. After the final level, the next hover returns to the original type display. Hovering at a different position, editing or closing the current document, or restarting the server resets expansion.
This uses TypeScript's experimental hover verbosity protocol, verified with TypeScript 7.0.2. Servers without expansion support keep ordinary hover behavior. All hover queries, including getHover and definitionHover, share the expansion state.
- TypeScript 7+ language features for coc.nvim
- onLanguage:javascript
- onLanguage:javascript.jsx
- onLanguage:javascriptreact
- onLanguage:typescript
- onLanguage:typescript.jsx
- onLanguage:typescript.tsx
- onLanguage:typescriptreact
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for @fannheyward/coc-ts@0.0.2.
| Command (:CocCommand) | Description |
|---|---|
| ts.restart | Restart TypeScript language server |
| ts.goToSourceDefinition | Go to Source Definition |
| ts.sortImports | Sort Imports |
| ts.removeUnusedImports | Remove Unused Imports |
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
Raw JSON Schema
{
"type": "string",
"scope": "resource",
"default": "",
"markdownDescription": "Path to a TypeScript 7+ package or its lib directory."
}Raw JSON Schema
{
"type": "boolean",
"scope": "resource",
"default": true,
"description": "Enable TypeScript 7+ language features."
}Raw JSON Schema
{
"type": "string",
"scope": "window",
"default": "",
"pattern": "^[0-9]+(([KMGT]i)?B)?$",
"description": "Value for the GOMEMLIMIT environment variable, for example 2048MiB or 4GiB."
}Raw JSON Schema
{
"enum": [
"off",
"messages",
"verbose"
],
"type": "string",
"scope": "application",
"default": "off",
"description": "Trace communication between coc.nvim and the TypeScript language server."
}