forked from cameron-martin/bazel-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lint for undefined global symbols
Previous implementation was passing empty prelude list to lint. The starlark-rust does not create warnings for undefined global symbols in such case. In general, for bazel we do not have prelude, just a list of global symbols. Needed to add manually some missing symbols, because bazel does not report all global symbols in `bazel info build-language`, see bazel-contrib/vscode-bazel#1 (comment) In the process: - Removed unused prelude. Looks it was carried over with migrating from starlark-rust, but prelude is not used in case of bazel. - Removed ContextMode run - bazel lsp is not able to actually run any starlark, those seems to be leftovers from starlark-rust
- Loading branch information
Showing
6 changed files
with
120 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.