diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-01-19 11:38:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 11:38:40 -0500 |
commit | 1cece36fa5d9e35406b22e8d6ed94bfc7fc5621a (patch) | |
tree | 5175c4f4bbb25b90b9f6ec90bf79c6227f08f97d /cli/lsp/analysis.rs | |
parent | 82b086752a381ecd47d8ee8a401a86a44347fe08 (diff) |
refactor(lsp): store the `LspUrlMap`'s state inside a mutex (#13416)
Diffstat (limited to 'cli/lsp/analysis.rs')
-rw-r--r-- | cli/lsp/analysis.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs index 182b90488..bbc30043d 100644 --- a/cli/lsp/analysis.rs +++ b/cli/lsp/analysis.rs @@ -341,7 +341,7 @@ fn is_preferred( /// for an LSP CodeAction. pub(crate) async fn ts_changes_to_edit( changes: &[tsc::FileTextChanges], - language_server: &mut language_server::Inner, + language_server: &language_server::Inner, ) -> Result<Option<lsp::WorkspaceEdit>, AnyError> { let mut text_document_edits = Vec::new(); for change in changes { @@ -607,7 +607,7 @@ impl CodeActionCollection { specifier: &ModuleSpecifier, action: &tsc::CodeFixAction, diagnostic: &lsp::Diagnostic, - language_server: &mut language_server::Inner, + language_server: &language_server::Inner, ) -> Result<(), AnyError> { if action.commands.is_some() { // In theory, tsc can return actions that require "commands" to be applied |