Skip to content

Commit

Permalink
fix(lsp): remove CompletionInfo.flags (denoland#15288)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jul 24, 2022
1 parent 58d1126 commit 7036600
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions cli/lsp/tsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1961,23 +1961,13 @@ impl CompletionEntryDetails {
}
}

#[derive(Debug, Deserialize_repr, Serialize_repr)]
#[repr(u32)]
pub enum CompletionInfoFlags {
None = 0,
MayIncludeAutoImports = 1,
IsImportStatementCompletion = 2,
IsContinuation = 4,
ResolvedModuleSpecifiers = 8,
ResolvedModuleSpecifiersBeyondLimit = 16,
MayIncludeMethodSnippets = 32,
}

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CompletionInfo {
entries: Vec<CompletionEntry>,
flags: Option<CompletionInfoFlags>,
// this is only used by Microsoft's telemetrics, which Deno doesn't use and
// there are issues with the value not matching the type definitions.
// flags: Option<CompletionInfoFlags>,
is_global_completion: bool,
is_member_completion: bool,
is_new_identifier_location: bool,
Expand Down

0 comments on commit 7036600

Please sign in to comment.