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 1
1
import * as vscode from "vscode" ;
2
2
import { AtelierAPI } from "../api" ;
3
- import { FILESYSTEM_SCHEMA } from "../extension" ;
3
+ import { config , FILESYSTEM_SCHEMA } from "../extension" ;
4
4
import { outputChannel } from "../utils" ;
5
5
6
6
interface StudioAction extends vscode . QuickPickItem {
@@ -36,7 +36,10 @@ class StudioActions {
36
36
. showWarningMessage ( target , { modal : true } , "Yes" , "No" )
37
37
. then ( answer => ( answer === "Yes" ? "1" : answer === "No" ? "0" : "2" ) ) ;
38
38
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");
40
43
case 3 : // Run an EXE on the client.
41
44
throw new Error ( "Not suppoorted" ) ;
42
45
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