diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-12-21 14:44:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 08:44:26 -0500 |
commit | bd85d0ed420b792eebdd81f88fca503e028c9565 (patch) | |
tree | d6f8d5baf4c3c0d760bea2b6b221189674d2e54b /cli/lsp/lsp_extensions.rs | |
parent | 3078fcf55a8aa04d26316ab353d84f2c9512bd47 (diff) |
refactor: rewrite lsp to be async (#8727)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'cli/lsp/lsp_extensions.rs')
-rw-r--r-- | cli/lsp/lsp_extensions.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/cli/lsp/lsp_extensions.rs b/cli/lsp/lsp_extensions.rs deleted file mode 100644 index eb0a62464..000000000 --- a/cli/lsp/lsp_extensions.rs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -///! -///! Extensions to the language service protocol that are specific to Deno. -///! -use deno_core::serde::Deserialize; -use deno_core::serde::Serialize; -use lsp_types::request::Request; -use lsp_types::TextDocumentIdentifier; - -#[derive(Debug, Deserialize, Serialize)] -#[serde(rename_all = "camelCase")] -pub struct VirtualTextDocumentParams { - pub text_document: TextDocumentIdentifier, -} - -/// Request a _virtual_ text document from the server. Used for example to -/// provide a status document of the language server which can be viewed in the -/// IDE. -pub enum VirtualTextDocument {} - -impl Request for VirtualTextDocument { - type Params = VirtualTextDocumentParams; - type Result = String; - const METHOD: &'static str = "deno/virtualTextDocument"; -} |