File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import * as vscode from "vscode" ;
22import { AtelierAPI } from "../api" ;
3- import { FILESYSTEM_SCHEMA } from "../extension" ;
3+ import { config , FILESYSTEM_SCHEMA } from "../extension" ;
44import { outputChannel } from "../utils" ;
55
66interface StudioAction extends vscode . QuickPickItem {
@@ -36,7 +36,10 @@ class StudioActions {
3636 . showWarningMessage ( target , { modal : true } , "Yes" , "No" )
3737 . then ( answer => ( answer === "Yes" ? "1" : answer === "No" ? "0" : "2" ) ) ;
3838 case 2 : // Run a CSP page/Template. The Target is the full url to the CSP page/Template
39- throw new Error ( "Not suppoorted" ) ;
39+ const conn = config ( ) . conn ;
40+ vscode . commands . executeCommand ( 'vscode.open' , vscode . Uri . parse ( `http://${ conn . host } :${ conn . port } ${ target } ` ) ) ;
41+ break ;
42+ // throw new Error("Not suppoorted");
4043 case 3 : // Run an EXE on the client.
4144 throw new Error ( "Not suppoorted" ) ;
4245 case 4 : // Insert the text in Target in the current document at the current selection point
You can’t perform that action at this time.
0 commit comments