Skip to content

Commit 1233fd9

Browse files
committed
fix(ls): enable compiler features required by the vt module.
Enable some compiler features so that code completion shows every field in the module, regardless of whether they are present only for file analyses, url analysis, etc.
1 parent 7694de4 commit 1233fd9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ls/src/features/diagnostics.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ pub fn compiler_diagnostics(
6969

7070
let mut compiler = Compiler::new();
7171

72+
// These features are required by the "vt" module. Some field will be
73+
// recognized only if these features are enabled.
74+
compiler
75+
.enable_feature("file")
76+
.enable_feature("url")
77+
.enable_feature("ip_address")
78+
.enable_feature("domain");
79+
7280
if let Some(regex) = rule_name_validation {
7381
if let Ok(linter) = linters::rule_name(regex) {
7482
compiler.add_linter(linter);

0 commit comments

Comments
 (0)