Skip to content

Commit 462893c

Browse files
authored
Make workspace a required arg when calling Document in Workspace class (#806)
1 parent f25259f commit 462893c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyls/workspace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ def source_roots(self, document_path):
103103
def _create_document(self, doc_uri, source=None, version=None):
104104
path = uris.to_fs_path(doc_uri)
105105
return Document(
106-
doc_uri, source=source, version=version,
106+
doc_uri, self, source=source, version=version,
107107
extra_sys_path=self.source_roots(path),
108108
rope_project_builder=self._rope_project_builder,
109-
config=self._config, workspace=self,
109+
config=self._config,
110110
)
111111

112112

0 commit comments

Comments
 (0)