From b0f0022567e4877462bda06441d3476933b3b112 Mon Sep 17 00:00:00 2001 From: Raoul Wols Date: Sat, 10 Nov 2018 12:28:28 +0100 Subject: [PATCH] No need to send the languageId in a didChange notification (#459) --- plugin/core/test_windows.py | 2 -- plugin/core/windows.py | 1 - 2 files changed, 3 deletions(-) diff --git a/plugin/core/test_windows.py b/plugin/core/test_windows.py index 3157c658b..20e268789 100644 --- a/plugin/core/test_windows.py +++ b/plugin/core/test_windows.py @@ -263,8 +263,6 @@ def test_can_start_active_views(self): # session must be started (todo: verify session is ready) self.assertIsNotNone(wm.get_session(test_config.name)) - - # self.assertListEqual(docs._documents, [__file__]) def test_can_open_supported_view(self): diff --git a/plugin/core/windows.py b/plugin/core/windows.py index b40195533..9c11b5aa2 100644 --- a/plugin/core/windows.py +++ b/plugin/core/windows.py @@ -278,7 +278,6 @@ def notify_did_change(self, view: ViewLike): params = { "textDocument": { "uri": uri, - "languageId": self._view_language(view, session.config.name), "version": document_state.inc_version(), }, "contentChanges": [{