Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show previous/next diagnostic with phantom (#783)
* Add prev/next commands, use old phantom ui, impl diagnostics cursor * Add nearest-diagnostic logic * Hook up related info, re-style phantom * Fix unknown view when diagnostic cleared * Only navigate errors/warnings * Fixing missing annotation (only on CI version of mypy) * Add previous/next buttons * Adding spacing between message and related info, add arrows * Add rounded corners, spacing between message and related info * Move unit-testable diagnostics logic to core * Update tests for DiagnosticsStorage * Test DiagnosticWalker * Fix lint and typing issues * Fix mock import * Split cursor walking modes, add tests * Add lost severity check and test * DRY cursor walks, add test for wrapping cursor * Output iterator order of test diagnostics * Use OrderedDict for test diagnostics * Wrap forward to start from diagnostic, remove debug test. * Use same color as hover for additional info A bit ugly with wrapping divs * Revert "Use same color as hover for additional info" This reverts commit f7714a5. * Add horizontal line before additional content
- Loading branch information
Showing
6 changed files
with
718 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
div.error-arrow { | ||
border-top: 0.4rem solid transparent; | ||
border-left: 0.5rem solid color(var(--redish) blend(var(--background) 30%)); | ||
width: 0; | ||
height: 0; | ||
} | ||
div.warning-arrow { | ||
border-top: 0.4rem solid transparent; | ||
border-left: 0.5rem solid color(var(--yellowish) blend(var(--background) 30%)); | ||
width: 0; | ||
height: 0; | ||
} | ||
div.container { | ||
margin: 0; | ||
border-radius: 0 0.2rem 0.2rem 0.2rem; | ||
} | ||
div.content { | ||
padding: 0.4rem 0.4rem 0.4rem 0.7rem; | ||
} | ||
div.content p { | ||
margin: 0.2rem; | ||
} | ||
div.content p.additional { | ||
border-top: 1px solid color(var(--background) alpha(0.25)); | ||
margin-top: 0.7rem; | ||
padding-top: 0.7rem; | ||
} | ||
div.toolbar { | ||
padding: 0.2rem 0.7rem 0.2rem 0.7rem; | ||
} | ||
div.toolbar a { | ||
text-decoration: none | ||
} | ||
html.dark div.toolbar { | ||
background-color: #00000018; | ||
} | ||
html.light div.toolbar { | ||
background-color: #ffffff18; | ||
} |
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.