Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #21 Use non-zero ranges for diagnostics
If a FROM's base image's digest string is the empty string, the generated diagnostic's range has a length of zero. This causes the CLI to not highlight anything in its output. Use the entire argument's range for the diagnostic instead so that the CLI can at least highlight something meaningful. Signed-off-by: Remy Suen <remy.suen@gmail.com>
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
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