mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-23 23:09:42 +00:00
Correctly log LSP adapter name on LSP request error (#7232)
Previously, we were logging the language server's binary filename instead. Release Notes: - N/A Co-authored-by: Nathan <nathan@zed.dev> Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
da44f637ed
commit
21f4da6bf2
1 changed files with 2 additions and 4 deletions
|
@ -74,7 +74,7 @@ use language::{
|
||||||
language_settings::{self, all_language_settings, InlayHintSettings},
|
language_settings::{self, all_language_settings, InlayHintSettings},
|
||||||
markdown, point_from_lsp, AutoindentMode, BracketPair, Buffer, Capability, CodeAction,
|
markdown, point_from_lsp, AutoindentMode, BracketPair, Buffer, Capability, CodeAction,
|
||||||
CodeLabel, Completion, CursorShape, Diagnostic, Documentation, IndentKind, IndentSize,
|
CodeLabel, Completion, CursorShape, Diagnostic, Documentation, IndentKind, IndentSize,
|
||||||
Language, LanguageServerName, OffsetRangeExt, Point, Selection, SelectionGoal, TransactionId,
|
Language, OffsetRangeExt, Point, Selection, SelectionGoal, TransactionId,
|
||||||
};
|
};
|
||||||
|
|
||||||
use link_go_to_definition::{GoToDefinitionLink, InlayHighlight, LinkGoToDefinitionState};
|
use link_go_to_definition::{GoToDefinitionLink, InlayHighlight, LinkGoToDefinitionState};
|
||||||
|
@ -7289,9 +7289,7 @@ impl Editor {
|
||||||
editor.buffer.read(cx).as_singleton().and_then(|buffer| {
|
editor.buffer.read(cx).as_singleton().and_then(|buffer| {
|
||||||
project
|
project
|
||||||
.language_server_for_buffer(buffer.read(cx), server_id, cx)
|
.language_server_for_buffer(buffer.read(cx), server_id, cx)
|
||||||
.map(|(_, lsp_adapter)| {
|
.map(|(lsp_adapter, _)| lsp_adapter.name.clone())
|
||||||
LanguageServerName(Arc::from(lsp_adapter.name()))
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
language_server_name.map(|language_server_name| {
|
language_server_name.map(|language_server_name| {
|
||||||
project.open_local_buffer_via_lsp(
|
project.open_local_buffer_via_lsp(
|
||||||
|
|
Loading…
Reference in a new issue