Skip to content

Commit

Permalink
Fix ST3 compatibility (#69)
Browse files Browse the repository at this point in the history
Fixes #68
  • Loading branch information
rchl authored Jun 27, 2021
1 parent e56ea38 commit 1667ba4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugin.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from LSP.plugin import ClientConfig
from LSP.plugin import uri_to_filename
from LSP.plugin import WorkspaceFolder
from LSP.plugin.core.edit import apply_workspace_edit
from LSP.plugin.core.edit import TextEditTuple
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.typing import Any, Callable, Dict, List, Mapping, Optional
from LSP.plugin.core.views import point_to_offset
Expand All @@ -11,6 +9,14 @@
import os
import sublime

try:
from LSP.plugin.core.edit import apply_workspace_edit
from LSP.plugin.core.edit import TextEditTuple
except ImportError:
# Not supported in ST3
TextEditTuple = Any
pass


def plugin_loaded():
LspTypescriptPlugin.setup()
Expand Down

0 comments on commit 1667ba4

Please sign in to comment.