This commit is contained in:
pccowboy 2023-10-27 18:55:38 +00:00 committed by GitHub
commit f423dd08a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ class PrettyJsonLintListener(sublime_plugin.EventListener, PrettyJsonBaseCommand
as_json = s.get("as_json", ["JSON"])
if any(syntax in view.settings().get("syntax") for syntax in as_json):
self.view = view
self.clear_phantoms()
json_content = view.substr(sublime.Region(0, view.size()))
try: