Add view object to self

This commit is contained in:
pccowboy 2023-10-27 11:48:23 -07:00 committed by GitHub
parent eef27b88ab
commit 21e56e1f34
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: