diff --git a/pyls/workspace.py b/pyls/workspace.py index 974dfb29..d89fe08b 100644 --- a/pyls/workspace.py +++ b/pyls/workspace.py @@ -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, )