Skip to content

Commit

Permalink
Keep compatibility with LSP-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
rwols committed Jun 25, 2021
1 parent 40fbb99 commit b723eb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/session_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ def get_language_id(self) -> Optional[str]:
return sv.get_language_id()
return None

@property
def language_id(self) -> str:
"""Deprecated: use get_language_id"""
return self.get_language_id() or ""

def add_session_view(self, sv: SessionViewProtocol) -> None:
self.session_views.add(sv)

Expand Down

0 comments on commit b723eb6

Please sign in to comment.