You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Solidify usage with multiple views into a file #142
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 returns True by default.
This is low priority but at least it's documented now.
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
Activity
deathaxe commentedon Jan 7, 2019
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.Make some ViewEventListeners work with clones
FichteFoll commentedon Jan 15, 2019
Just adding the callback didn't work for:
SyntaxTestHighlighterListenerSyntaxDefRegexCaptureGroupHighlighterBut did work for:
SettingsListener(c42fd54)ColorSchemeCompletionsListener(c42fd54)SyntaxDefCompletionsListener(fef2f7a)