Skip to content

Commit

Permalink
Make workspace a required arg when calling Document in Workspace class (
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 authored May 11, 2020
1 parent f25259f commit 462893c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyls/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def source_roots(self, document_path):
def _create_document(self, doc_uri, source=None, version=None):
path = uris.to_fs_path(doc_uri)
return Document(
doc_uri, source=source, version=version,
doc_uri, self, source=source, version=version,
extra_sys_path=self.source_roots(path),
rope_project_builder=self._rope_project_builder,
config=self._config, workspace=self,
config=self._config,
)


Expand Down

0 comments on commit 462893c

Please sign in to comment.