File tree 2 files changed +1
-10
lines changed
2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ async function getCallLocation(frame: DebugProtocol.StackFrame): Promise<CallLoc
73
73
if ( ! frame . source ?. path ) {
74
74
throw new Error ( "No source path found for frame" ) ;
75
75
}
76
- const file = Uri . file ( frame . source . path ) ;
76
+ const file = Uri . parse ( frame . source . path ) ;
77
77
const zeroIndexedLine = frame . line - 1 ;
78
78
const noFunctionLookupSize = 3 ;
79
79
Original file line number Diff line number Diff line change @@ -38,13 +38,6 @@ export async function activate(context: ExtensionContext) {
38
38
}
39
39
} ) ;
40
40
41
- function disposeRpcChannel ( ) {
42
- if ( currentFrontendRpcChannel ) {
43
- currentFrontendRpcChannel [ Comlink . releaseProxy ] ( ) ;
44
- currentFrontendRpcChannel = undefined ;
45
- }
46
- }
47
-
48
41
commands . registerCommand ( 'call-graph.show-call-graph' , async ( ) => {
49
42
try {
50
43
if ( ! currentPanel ?. webview ) {
@@ -63,11 +56,9 @@ export async function activate(context: ExtensionContext) {
63
56
64
57
currentPanel . onDidDispose ( ( ) => {
65
58
currentPanel = undefined ;
66
- disposeRpcChannel ( ) ;
67
59
} ) ;
68
60
69
61
// release current channel if needed
70
- disposeRpcChannel ( ) ;
71
62
72
63
currentFrontendRpcChannel = Comlink . wrap < ComlinkFrontendApi > ( getComlinkChannel ( currentPanel . webview , context ) ) ;
73
64
You can’t perform that action at this time.
0 commit comments