- **store `buffer::Diagnostic`as NumberOrString instead of assuming String** - **update zed-industries/lsp-types rev** Closes #24081 Release Notes: - Fixed an issue where language server diagnostic codes would be converted to strings leading to errors with some language servers
This commit is contained in:
parent
10b6bc2508
commit
8b3d315e40
6 changed files with 12 additions and 22 deletions
|
|
@ -28,7 +28,7 @@ use gpui::{
|
|||
AnyElement, App, AppContext as _, Context, Entity, EventEmitter, HighlightStyle, Pixels,
|
||||
SharedString, StyledText, Task, TaskLabel, TextStyle, Window,
|
||||
};
|
||||
use lsp::LanguageServerId;
|
||||
use lsp::{LanguageServerId, NumberOrString};
|
||||
use parking_lot::Mutex;
|
||||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
|
@ -202,7 +202,7 @@ pub struct Diagnostic {
|
|||
/// The name of the service that produced this diagnostic.
|
||||
pub source: Option<String>,
|
||||
/// A machine-readable code that identifies this diagnostic.
|
||||
pub code: Option<String>,
|
||||
pub code: Option<NumberOrString>,
|
||||
/// Whether this diagnostic is a hint, warning, or error.
|
||||
pub severity: DiagnosticSeverity,
|
||||
/// The human-readable message associated with this diagnostic.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue