Move lsp server to this repo (#5619)
This commit is contained in:
24
rust/kcl-language-server/client/src/lsp_ext.ts
Normal file
24
rust/kcl-language-server/client/src/lsp_ext.ts
Normal file
@ -0,0 +1,24 @@
|
||||
/* 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
|
||||
}
|
Reference in New Issue
Block a user