Skip to content

Commit

Permalink
use simple error for code lenses that failed resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored and rwols committed Nov 15, 2023
1 parent a2dc917 commit b93e2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/code_lens.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def resolve_annotation(self, view_id: int) -> None:
def resolve(self, view: sublime.View, code_lens_or_error: Union[CodeLens, Error]) -> None:
if isinstance(code_lens_or_error, Error):
self.is_resolve_error = True
self.annotation = html_escape(str(code_lens_or_error))
self.annotation = '<span style="color: color(var(--redish)">error</span>'
return
self.data = code_lens_or_error
self.region = range_to_region(code_lens_or_error['range'], view)
Expand Down

0 comments on commit b93e2de

Please sign in to comment.