You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2024/02/09 08:18:00 UTC
[jira] [Commented] (GROOVY-11310) GroovyEditor Script Auto-Completion
[ https://issues.apache.org/jira/browse/GROOVY-11310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17815959#comment-17815959 ]
Paul King commented on GROOVY-11310:
------------------------------------
Did you place a ticket on the GroovyLanguageServer project?
> GroovyEditor Script Auto-Completion
> -----------------------------------
>
> Key: GROOVY-11310
> URL: https://issues.apache.org/jira/browse/GROOVY-11310
> Project: Groovy
> Issue Type: New Feature
> Components: Compiler
> Affects Versions: 4.0.18
> Reporter: Pruteanu Dragos
> Priority: Major
>
> I need help on [Groovy Language Server,|https://github.com/GroovyLanguageServer/groovy-language-server] a project for auto-completion in text editors. This is using the Groovy internal classes to compile an existing file and provide text completion. See the project test cases for samples.
>
> My request: extend the project to support Groovy Scripts Bindings and ImportCustomizers. Currently the project can handle text files, but there is no way to provide Bindings or ImportCustomizers. The project class [GroovyLSCompilationUnit |https://github.com/GroovyLanguageServer/groovy-language-server/blob/master/src/main/java/net/prominic/groovyls/compiler/control/GroovyLSCompilationUnit.java] extends the[CompilationUnit|https://docs.groovy-lang.org/latest/html/api/org/codehaus/groovy/control/CompilationUnit.html], and I don't know how to adapt this class for Bindings.
>
> About GroovyLanguageServer: This is using [lsp4j|[https://github.com/eclipse-lsp4j/lsp4j],] a interface for editors doing text auto-completion. This receives the script text and a position in text, and delivers a list of keywords for text completion. Supporting editors with text completion should be a priority, as this will improve the visual editing of Groovy scripts.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)