Skip to content
This repository was archived by the owner on Mar 27, 2019. It is now read-only.

Commit ebbd7dc

Browse files
committed
rm old workspace, rename cloneworkspace to workspace
1 parent cf7fe97 commit ebbd7dc

File tree

3 files changed

+180
-624
lines changed

3 files changed

+180
-624
lines changed

langserver/clone_workspace.py

Lines changed: 0 additions & 210 deletions
This file was deleted.

langserver/langserver.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
from .fs import LocalFileSystem, RemoteFileSystem
1212
from .jedi import RemoteJedi
1313
from .jsonrpc import JSONRPC2Connection, ReadWriter, TCPReadWriter
14-
# from .workspace import Workspace
14+
from .workspace import Workspace, ModuleKind
1515
from .symbols import extract_symbols, workspace_symbols
1616
from .definitions import targeted_symbol
1717
from .references import get_references
18-
from .clone_workspace import CloneWorkspace, ModuleKind
1918

2019
log = logging.getLogger(__name__)
2120

@@ -178,9 +177,7 @@ def serve_initialize(self, request):
178177
# Sourcegraph also passes in a rootUri which has commit information
179178
originalRootUri = params.get("originalRootUri") or params.get(
180179
"originalRootPath") or ""
181-
# self.workspace = Workspace(
182-
# self.fs, self.root_path, originalRootUri, pip_args)
183-
self.workspace = CloneWorkspace(
180+
self.workspace = Workspace(
184181
self.fs, self.root_path, originalRootUri)
185182

186183
return {
@@ -202,8 +199,8 @@ def test_initialize(self, request, fs):
202199

203200
self.fs = fs
204201
self.streaming = False
205-
self.workspace = CloneWorkspace(self.fs, self.root_path,
206-
params["originalRootPath"])
202+
self.workspace = Workspace(self.fs, self.root_path,
203+
params["originalRootPath"])
207204

208205
return {
209206
"capabilities": {

0 commit comments

Comments
 (0)