Skip to content

Commit

Permalink
fix deserializing completion flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed May 31, 2022
1 parent 342803e commit 2ca0eb6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ rustyline-derive = "=0.6.0"
secure_tempfile = { version = "=3.3.0", package = "tempfile" } # different name to discourage use in tests
semver-parser = "=0.10.2"
serde = { version = "=1.0.136", features = ["derive"] }
serde_repr = "=0.1.8"
shell-escape = "=0.1.5"
text-size = "=1.1.0"
text_lines = "=0.4.1"
Expand Down
5 changes: 4 additions & 1 deletion cli/lsp/tsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ use log::warn;
use once_cell::sync::Lazy;
use regex::Captures;
use regex::Regex;
use serde_repr::Deserialize_repr;
use serde_repr::Serialize_repr;
use std::cmp;
use std::collections::HashMap;
use std::collections::HashSet;
Expand Down Expand Up @@ -1872,7 +1874,8 @@ impl CompletionEntryDetails {
}
}

#[derive(Debug, Deserialize, Serialize)]
#[derive(Debug, Deserialize_repr, Serialize_repr)]
#[repr(u32)]
pub enum CompletionInfoFlags {
None = 0,
MayIncludeAutoImports = 1,
Expand Down

0 comments on commit 2ca0eb6

Please sign in to comment.