From b93e2de5f1fb595b67542392500bdd1dee44bf97 Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Wed, 15 Nov 2023 00:08:35 +0100 Subject: [PATCH] use simple error for code lenses that failed resolve --- plugin/code_lens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/code_lens.py b/plugin/code_lens.py index 7546065d1..778d3b7f5 100644 --- a/plugin/code_lens.py +++ b/plugin/code_lens.py @@ -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 = 'error' return self.data = code_lens_or_error self.region = range_to_region(code_lens_or_error['range'], view)