Skip to content

Instantly share code, notes, and snippets.

@hadisfr
Created September 13, 2022 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadisfr/0d26f45ccf9551a34adf0d2c947cc085 to your computer and use it in GitHub Desktop.
Save hadisfr/0d26f45ccf9551a34adf0d2c947cc085 to your computer and use it in GitHub Desktop.
diff --git a/hsdev/backend.py b/hsdev/backend.py
index 10eef88..08da254 100644
--- a/hsdev/backend.py
+++ b/hsdev/backend.py
@@ -40,7 +40,7 @@ class HsDevBackend(Backend.HaskellBackend):
HSDEV_DEFAULT_HOST = 'localhost'
HSDEV_NOT_FOUND = [0, 0, 0, 0]
HSDEV_MIN_VER = [0, 3, 3, 0] # minimum hsdev version
- HSDEV_MAX_VER = [0, 3, 4, 0] # maximum hsdev version
+ HSDEV_MAX_VER = [0, 3, 5, 0] # maximum hsdev version
HSDEV_CALL_TIMEOUT = 300.0 # second timeout for synchronous requests (5 minutes should be enough, no?)
def __init__(self, backend_mgr, local=True, port=HSDEV_DEFAULT_PORT, host=HSDEV_DEFAULT_HOST, **kwargs):
diff --git a/sublime_haskell_common.py b/sublime_haskell_common.py
index 94937e5..13dd85e 100644
--- a/sublime_haskell_common.py
+++ b/sublime_haskell_common.py
@@ -208,8 +208,8 @@ def output_panel(window, text='', panel_name=DEFAULT_PANEL_NAME, syntax=None, pa
output_view = None
if window is not None:
output_view = window.get_output_panel(panel_name)
- if syntax is not None:
- output_view.set_syntax_file('Packages/SublimeHaskell/Syntaxes/{0}.tmLanguage'.format(syntax))
+ # if syntax is not None:
+ # output_view.set_syntax_file('Packages/SublimeHaskell/Syntaxes/{0}.tmLanguage'.format(syntax))
output_text(output_view, text, clear=True)
output_view.sel().clear()
output_view.sel().add(sublime.Region(0, 0))
diff --git a/zzplugin.py b/zzplugin.py
index e220b47..dc2cf7b 100644
--- a/zzplugin.py
+++ b/zzplugin.py
@@ -221,9 +221,9 @@ class SublimeHaskellEventListener(EV_SUBCLASS):
print('{0}.on_load {1}.'.format(type(self).__name__, filename))
view_settings = view.settings() or {}
- if Settings.PLUGIN.use_improved_syntax and (filename.endswith(".hs") or filename.endswith(".hsc") or \
- view_settings.get('syntax', '').endswith('.tmLanguage')):
- view_settings.set('syntax', 'Packages/SublimeHaskell/Syntaxes/Haskell-SublimeHaskell.sublime-syntax')
+ # if Settings.PLUGIN.use_improved_syntax and (filename.endswith(".hs") or filename.endswith(".hsc") or \
+ # view_settings.get('syntax', '').endswith('.tmLanguage')):
+ # view_settings.set('syntax', 'Packages/SublimeHaskell/Syntaxes/Haskell-SublimeHaskell.sublime-syntax')
EventCommon.assoc_to_project(view, self.backend_mgr, filename)
_project_dir, project_name = Common.locate_cabal_project_from_view(view)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment