This issue has been created
 
 
CLI / cid:jira-generated-image-avatar-c82dad55-bcd9-4dd5-ac7a-d15d2ecb5cbf CLI-18 Open

Add possibility to edit groovy macro with auto completion

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-fb9d0474-ce1d-431c-aa77-b3b3b01cd669 Josué Tille created this issue on 02/Jul/25 10:54
 
Summary: Add possibility to edit groovy macro with auto completion
Issue Type: cid:jira-generated-image-avatar-c82dad55-bcd9-4dd5-ac7a-d15d2ecb5cbf New Feature
Assignee: Unassigned
Created: 02/Jul/25 10:54
Priority: cid:jira-generated-image-static-major-4b886251-6966-445d-88ab-50990bde5744 Major
Reporter: Josué Tille
Description:

This is to add the possibility to edit groovy macro with the full XWiki context. So by example typing services.query. will automatically suggested the method of the QueryManagerScriptService.

 

By adding something like @BaseScript ScriptContext mainScript at the top of the script we can say to the IDE to import the context from an other page and then declare the full context in this one.

 

Ideally we should have a same tools for velocity but currently I didn't find any IDE with auto-completion for velocity so a feature like this might be useless for velocity.