File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 694
694
"default" : false
695
695
},
696
696
"links" : {
697
- "description" : " Extra links for the server." ,
697
+ "description" : " Extra links for the server command menu ." ,
698
698
"type" : " object" ,
699
699
"patternProperties" : {
700
700
".*" : {
701
701
"type" : " string" ,
702
- "format" : " uri"
702
+ "description" : " Key is displayed on menu. Value is the uri to open. Several ${...} substitution symbols are supported in the value." ,
703
+ "anyOf" : [
704
+ {
705
+ "format" : " uri"
706
+ },
707
+ {
708
+ "pattern" : " ^\\ ${serverUrl}\/ .*"
709
+ }
710
+ ]
703
711
}
704
712
}
705
713
},
Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ export async function serverActions(): Promise<void> {
80
80
link = link
81
81
. replace ( "${host}" , host )
82
82
. replace ( "${port}" , port . toString ( ) )
83
+ . replace ( "${serverUrl}" , serverUrl )
84
+ . replace ( "${serverAuth}" , auth )
85
+ . replace ( "${ns}" , nsEncoded )
83
86
. replace ( "${namespace}" , ns == "%SYS" ? "sys" : nsEncoded . toLowerCase ( ) )
84
87
. replace ( "${classname}" , classname ) ;
85
88
actions . push ( {
You can’t perform that action at this time.
0 commit comments