/** Contains extensions to the Language Server Protocol that are supported by
 * the Deno Language Server.
 *
 * The requests and notifications types should mirror the Deno's CLI
 * `cli/lsp/language_server.rs` under the method `request_else`.
 */ import { NotificationType , RequestType , RequestType0 , } from "vscode-languageclient" ; import type { TextDocumentIdentifier } from "vscode-languageclient" ; export interface CacheParams { referrer : TextDocumentIdentifier ; uris : TextDocumentIdentifier [ ] ; } export const cache = new RequestType < CacheParams , boolean , void > ( "deno/cache" ) ; export const reloadImportRegistries = new RequestType0 < boolean , void > ( "deno/reloadImportRegistries" ) ; export interface RegistryStateParams { origin : string ; suggestions : boolean ; } export const registryState = new NotificationType < RegistryStateParams > ( "deno/registryState" ) ; export interface VirtualTextDocumentParams { textDocument : TextDocumentIdentifier ; } export const virtualTextDocument = new RequestType < VirtualTextDocumentParams , string , void > ( "deno/virtualTextDocument" ) ;