1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 18:17:48 -05:00

fix(lsp): remove CompletionInfo.flags (#15288)

Fixes: #15287
This commit is contained in:
Kitson Kelly 2022-07-25 07:11:33 +10:00 committed by cjihrig
parent 504d2936ec
commit 015e2c1a9e
No known key found for this signature in database
GPG key ID: 7434390BDBE9B9C5

View file

@ -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,