diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-01-30 17:17:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 17:17:34 +0000 |
commit | d730956f49e8624e789dded126f0fba514c2ed55 (patch) | |
tree | e375aae786b17757586fe13529dd62d2392c0f68 /cli/lsp/lsp_custom.rs | |
parent | 0e1cae32b3d60bc7565529f87611ad52d53ed0ac (diff) |
fix(lsp): don't normalize urls in cache command params (#22182)
Diffstat (limited to 'cli/lsp/lsp_custom.rs')
-rw-r--r-- | cli/lsp/lsp_custom.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cli/lsp/lsp_custom.rs b/cli/lsp/lsp_custom.rs index a1fe392f1..637a88bda 100644 --- a/cli/lsp/lsp_custom.rs +++ b/cli/lsp/lsp_custom.rs @@ -4,28 +4,14 @@ use deno_core::serde::Deserialize; use deno_core::serde::Serialize; use tower_lsp::lsp_types as lsp; -pub const CACHE_REQUEST: &str = "deno/cache"; pub const PERFORMANCE_REQUEST: &str = "deno/performance"; pub const TASK_REQUEST: &str = "deno/taskDefinitions"; -pub const RELOAD_IMPORT_REGISTRIES_REQUEST: &str = - "deno/reloadImportRegistries"; pub const VIRTUAL_TEXT_DOCUMENT: &str = "deno/virtualTextDocument"; pub const LATEST_DIAGNOSTIC_BATCH_INDEX: &str = "deno/internalLatestDiagnosticBatchIndex"; #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] -pub struct CacheParams { - /// The document currently open in the editor. If there are no `uris` - /// supplied, the referrer will be cached. - pub referrer: lsp::TextDocumentIdentifier, - /// Any documents that have been specifically asked to be cached via the - /// command. - pub uris: Vec<lsp::TextDocumentIdentifier>, -} - -#[derive(Debug, Deserialize, Serialize)] -#[serde(rename_all = "camelCase")] pub struct TaskDefinition { pub name: String, // TODO(nayeemrmn): Rename this to `command` in vscode_deno. |