Skip to content

Commit b3a51ea

Browse files
committed
Fix extension for wsl
1 parent d449915 commit b3a51ea

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/debug/callstack-extractor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function getCallLocation(frame: DebugProtocol.StackFrame): Promise<CallLoc
7373
if (!frame.source?.path) {
7474
throw new Error("No source path found for frame");
7575
}
76-
const file = Uri.file(frame.source.path);
76+
const file = Uri.parse(frame.source.path);
7777
const zeroIndexedLine = frame.line - 1;
7878
const noFunctionLookupSize = 3;
7979

src/extension.ts

-9
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ export async function activate(context: ExtensionContext) {
3838
}
3939
});
4040

41-
function disposeRpcChannel() {
42-
if (currentFrontendRpcChannel) {
43-
currentFrontendRpcChannel[Comlink.releaseProxy]();
44-
currentFrontendRpcChannel = undefined;
45-
}
46-
}
47-
4841
commands.registerCommand('call-graph.show-call-graph', async () => {
4942
try {
5043
if (!currentPanel?.webview) {
@@ -63,11 +56,9 @@ export async function activate(context: ExtensionContext) {
6356

6457
currentPanel.onDidDispose(() => {
6558
currentPanel = undefined;
66-
disposeRpcChannel();
6759
});
6860

6961
// release current channel if needed
70-
disposeRpcChannel();
7162

7263
currentFrontendRpcChannel = Comlink.wrap<ComlinkFrontendApi>(getComlinkChannel(currentPanel.webview, context));
7364

0 commit comments

Comments
 (0)