Files
modeling-app/rust/kcl-language-server/client/src/lsp_ext.ts
2025-03-04 22:21:12 -08:00

25 lines
555 B
TypeScript

/* eslint suggest-no-throw/suggest-no-throw: 0 */
import * as lc from 'vscode-languageclient'
export type CommandLink = {
/**
* A tooltip for the command, when represented in the UI.
*/
tooltip?: string
} & lc.Command
export type CommandLinkGroup = {
title?: string
commands: CommandLink[]
}
// experimental extensions
export const serverStatus = new lc.NotificationType<ServerStatusParams>(
'experimental/serverStatus'
)
export type ServerStatusParams = {
health: 'ok' | 'warning' | 'error'
quiescent: boolean
message?: string
}