mfussenegger / nvim-jdtls

Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls
GNU General Public License v3.0
1.08k stars 62 forks source link

maven active profiles set/show #688

Closed JavaHello closed 1 week ago

JavaHello commented 1 month ago

Sometimes I need to switch Maven profile settings in my projects, for example "dev", "prod". If I just use mvn -P xxx, it will not update to jdtls compilation.

So I want to add JdtUpdateMavenActiveProfiles, JdtShowMavenActiveProfiles two commands for updating and viewing MavenActiveProfiles

:JdtUpdateMavenActiveProfiles dev,xxx

:JdtShowMavenActiveProfiles
Active profiles: dev,xxx

References: https://github.com/eclipse-jdtls/eclipse.jdt.ls/pull/3158

apoorvshah10 commented 1 month ago

Love this! I didnt test it though but I like your idea

mfussenegger commented 1 week ago

Thanks merged with an additional fixup to remove the new module and public APIs and instead only expose the user commands for now.