Skip to content

Commit c7fff17

Browse files
committed
fix: lazy-load RemoteDebuggerCommandService
1 parent 6e11dde commit c7fff17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debugger/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { fastDebounce } from "@atom-ide-community/nuclide-commons/observable"
1010
import UniversalDisposable from "@atom-ide-community/nuclide-commons/UniversalDisposable"
1111
import { Observable } from "rxjs-compat/bundles/rxjs-compat.umd.min.js"
1212
import { track } from "@atom-ide-community/nuclide-commons/analytics"
13-
import * as RemoteDebuggerCommandServiceLocal from "./RemoteDebuggerCommandService"
1413
import nullthrows from "nullthrows"
1514

1615
let _rpcService: ?nuclide$RpcService = null
@@ -146,6 +145,7 @@ function findDuplicateAttachTargetIds(targets: Array<PythonDebuggerAttachTarget>
146145
}
147146

148147
export function getRemoteDebuggerCommandServiceByNuclideUri(uri: NuclideUri): RemoteDebuggerCommandService {
148+
const RemoteDebuggerCommandServiceLocal = require("./RemoteDebuggerCommandService")
149149
if (_rpcService == null && !nuclideUri.isRemote(uri)) {
150150
return RemoteDebuggerCommandServiceLocal
151151
}

0 commit comments

Comments
 (0)