summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2022-07-25 07:11:33 +1000
committerGitHub <noreply@github.com>2022-07-25 07:11:33 +1000
commit7036600be3cebc3e87ab0aff75b6e3d0cd216be9 (patch)
tree0d34ff3684a8e661c8088d2dbcbe426857eb41b2
parent58d1126fa43ac429d4fcdfc3914abf1ccca93bc5 (diff)
fix(lsp): remove CompletionInfo.flags (#15288)
Fixes: #15287
-rw-r--r--cli/lsp/tsc.rs16
1 files changed, 3 insertions, 13 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs
index b701893df..384a2d181 100644
--- a/cli/lsp/tsc.rs
+++ b/cli/lsp/tsc.rs
@@ -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,