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 694694 "default" : false
695695 },
696696 "links" : {
697- "description" : " Extra links for the server." ,
697+ "description" : " Extra links for the server command menu ." ,
698698 "type" : " object" ,
699699 "patternProperties" : {
700700 ".*" : {
701701 "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+ ]
703711 }
704712 }
705713 },
Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ export async function serverActions(): Promise<void> {
8080 link = link
8181 . replace ( "${host}" , host )
8282 . replace ( "${port}" , port . toString ( ) )
83+ . replace ( "${serverUrl}" , serverUrl )
84+ . replace ( "${serverAuth}" , auth )
85+ . replace ( "${ns}" , nsEncoded )
8386 . replace ( "${namespace}" , ns == "%SYS" ? "sys" : nsEncoded . toLowerCase ( ) )
8487 . replace ( "${classname}" , classname ) ;
8588 actions . push ( {
You can’t perform that action at this time.
0 commit comments