File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ const EXTENSION_ID = "source-academy";
12
12
*/
13
13
const commands = ( context : vscode . ExtensionContext ) => ( {
14
14
pick : ( ) => runLanguagePicker ( context ) ,
15
- "show-panel" : ( route ?: string , altUrl ?: string ) =>
16
- showPanel ( context , route , altUrl ) ,
15
+ "show-panel" : ( route ?: string ) => showPanel ( context , route ) ,
17
16
"eval-editor" : ( ) => evalEditor ( context ) ,
18
17
navigate : ( route : string ) => navigate ( context , route ) ,
19
18
} ) ;
Original file line number Diff line number Diff line change @@ -109,12 +109,7 @@ async function handleMessage(
109
109
110
110
export async function showPanel (
111
111
context : vscode . ExtensionContext ,
112
- /*
113
- route is relative to frontendUrl, while altUrl allows specifiying any arbitrary URL.
114
- TODO: across this repo, move any references to backendUrl to the frontend repo, then remove altUrl param
115
- */
116
112
route ?: string ,
117
- altUrl ?: string ,
118
113
) {
119
114
let language : string | undefined = context . workspaceState . get ( "language" ) ;
120
115
if ( ! language ) {
@@ -140,8 +135,8 @@ export async function showPanel(
140
135
context . subscriptions ,
141
136
) ;
142
137
143
- const iframeUrl =
144
- altUrl ?? new URL ( route ?? "/playground" , config . frontendBaseUrl ) . href ;
138
+ const iframeUrl = new URL ( route ?? "/playground" , config . frontendBaseUrl )
139
+ . href ;
145
140
146
141
// equivalent to panel.webview.html = ...
147
142
setWebviewContent (
You can’t perform that action at this time.
0 commit comments