diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-08-24 01:21:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-24 01:21:21 +0100 |
commit | 2ab4afc6b8e90f1315e0727c9b9c714c3667dc45 (patch) | |
tree | 05f07ba22d5d4a5f5120ab988320ad88ea20d542 /cli/lsp/testing/server.rs | |
parent | bbd3a7e637b0223647405adf76b23092ab957157 (diff) |
refactor(lsp): changes for lsp_types 0.97.0 (#25169)
Diffstat (limited to 'cli/lsp/testing/server.rs')
-rw-r--r-- | cli/lsp/testing/server.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/lsp/testing/server.rs b/cli/lsp/testing/server.rs index ff59e1033..0c34ea7bc 100644 --- a/cli/lsp/testing/server.rs +++ b/cli/lsp/testing/server.rs @@ -10,6 +10,7 @@ use crate::lsp::config; use crate::lsp::documents::DocumentsFilter; use crate::lsp::language_server::StateSnapshot; use crate::lsp::performance::Performance; +use crate::lsp::urls::url_to_uri; use deno_core::error::AnyError; use deno_core::parking_lot::Mutex; @@ -26,10 +27,12 @@ use tower_lsp::jsonrpc::Error as LspError; use tower_lsp::jsonrpc::Result as LspResult; use tower_lsp::lsp_types as lsp; -fn as_delete_notification(uri: ModuleSpecifier) -> TestingNotification { +fn as_delete_notification(url: ModuleSpecifier) -> TestingNotification { TestingNotification::DeleteModule( lsp_custom::TestModuleDeleteNotificationParams { - text_document: lsp::TextDocumentIdentifier { uri }, + text_document: lsp::TextDocumentIdentifier { + uri: url_to_uri(&url), + }, }, ) } |