File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,7 @@ You can add custom entries to this list using the `objectscript.conn.links` conf
241
241
- ** ${namespace}** - The raw ` ns ` parameter of the connection. For example, ` sys ` or ` user `
242
242
- ** ${classname}** - The name of the currently opened class, or the empty string if the currently opened document is not a class.
243
243
- ** ${classnameEncoded}** - URL encoded version of ** \$ {classname}** .
244
+ - ** ${project}** - The currently opened server-side project, or the empty string.
244
245
245
246
An example links configuration looks like this:
246
247
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ export async function serverActions(): Promise<void> {
137
137
classname ? "&CLASSNAME=" + classnameEncoded : ""
138
138
} `;
139
139
const soapWizardPath = "/isc/studio/templates/%25ZEN.Template.AddInWizard.SOAPWizard.cls" ;
140
+ const project = new URLSearchParams ( uriOfWorkspaceFolder ( ) ?. query ) . get ( "project" ) || "" ;
140
141
let extraLinks = 0 ;
141
142
let hasSOAPWizard = false ;
142
143
for ( const title in links ) {
@@ -156,7 +157,8 @@ export async function serverActions(): Promise<void> {
156
157
. replace ( "${ns}" , nsEncoded )
157
158
. replace ( "${namespace}" , ns == "%SYS" ? "sys" : nsEncoded . toLowerCase ( ) )
158
159
. replace ( "${classname}" , classname )
159
- . replace ( "${classnameEncoded}" , classnameEncoded ) ;
160
+ . replace ( "${classnameEncoded}" , classnameEncoded )
161
+ . replace ( "${project}" , project ) ;
160
162
actions . push ( {
161
163
id : "extraLink" + extraLinks ++ ,
162
164
label : title ,
You can’t perform that action at this time.
0 commit comments