Skip to content

Commit

Permalink
Add explicit default environment
Browse files Browse the repository at this point in the history
Inspired by jedi-vim
  • Loading branch information
pappasam committed Aug 19, 2019
1 parent 5ac24ff commit 5fb7767
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions jedi_language_server/server_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from jedi import Script
from jedi.api.classes import Definition
from jedi.api.environment import get_cached_default_environment

from pygls.server import LanguageServer
from pygls.uris import from_fs_path
Expand Down Expand Up @@ -34,6 +35,7 @@ def get_jedi_script(
path=text_doc.path,
line=params.position.line + 1,
column=params.position.character,
environment=get_cached_default_environment(),
)


Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ line-length = 79

[tool.poetry]
name = "jedi-language-server"
version = "0.1.0"
description = "Toml sorting library"
version = "0.1.1"
description = "A language server for Jedi!"
authors = ["Sam Roeca <samuel.roeca@gmail.com>"]
readme = "README.md"
homepage = "https://github.com/pappasam/jedi-language-server"
Expand Down

0 comments on commit 5fb7767

Please sign in to comment.