Open FichteFoll opened 7 years ago
Just wondered why completions didn't work for Sublime Syntax when I found it was a secondary view. Adding applies_to_primary_view_only()
fixes the issue and seems to works well so far.
class SyntaxDefCompletionsListener(sublime_plugin.ViewEventListener):
@classmethod
def applies_to_primary_view_only(cls):
return False
Just adding the callback didn't work for:
SyntaxTestHighlighterListener
SyntaxDefRegexCaptureGroupHighlighter
But did work for:
SettingsListener
(c42fd54b63fdb9ed638887aced945415cc4c5247)ColorSchemeCompletionsListener
(c42fd54b63fdb9ed638887aced945415cc4c5247)SyntaxDefCompletionsListener
(fef2f7a12d5a9ec68edf0ddfc79b9504b2cc13f3)
None of the event listeners were tested with multiple views into the same file. Also, none of the ViewEventListeners implement
applies_to_primary_view_only
, which returnsTrue
by default.This is low priority but at least it's documented now.