Skip to content
/ LSP Public
forked from sublimelsp/LSP

Commit

Permalink
Revert "Exempt Linux"
Browse files Browse the repository at this point in the history
This reverts commit 4dd2e91.
  • Loading branch information
jwortmann committed Apr 10, 2024
1 parent aca100e commit 740c0cb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion plugin/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


ST_VERSION = int(sublime.version())
ST_PLATFORM = sublime.platform()

# Keys for View.add_regions
HOVER_HIGHLIGHT_KEY = 'lsp_hover_highlight'
Expand Down
4 changes: 1 addition & 3 deletions plugin/session_buffer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .core.constants import DOCUMENT_LINK_FLAGS
from .core.constants import SEMANTIC_TOKEN_FLAGS
from .core.constants import ST_PLATFORM
from .core.protocol import ColorInformation
from .core.protocol import Diagnostic
from .core.protocol import DocumentDiagnosticParams
Expand Down Expand Up @@ -169,8 +168,7 @@ def _check_did_open(self, view: sublime.View) -> None:

def _check_did_close(self, view: sublime.View) -> None:
if self.opened and self.should_notify_did_close():
if ST_PLATFORM != 'linux': # https://github.com/sublimelsp/LSP/pull/2438
self.purge_changes_async(view, suppress_requests=True)
self.purge_changes_async(view, suppress_requests=True)
self.session.send_notification(did_close(uri=self._last_known_uri))
self.opened = False

Expand Down
5 changes: 0 additions & 5 deletions tests/test_single_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from setup import YieldPromise
import os
import sublime
import sys
import unittest


try:
Expand Down Expand Up @@ -408,9 +406,6 @@ class AnotherDocumentTestCase(TextDocumentTestCase):
def get_test_name(cls) -> str:
return "testfile2"

# The fix from https://github.com/sublimelsp/LSP/pull/2438 oddly causes an unrelated test to fail on Linux, so it's
# only applied on Windows and macOS for now.
@unittest.skipIf(sys.platform.startswith("linux"), "not working as expected on Linux")
def test_did_change_before_did_close(self) -> 'Generator':
assert self.view
self.view.window().run_command("chain", {
Expand Down

0 comments on commit 740c0cb

Please sign in to comment.