All notable changes to the JBang extension will be documented in this file.
- Added textmate grammar for JBang directives
- Fixed error reporting for unresolved dependencies
- Updated various dependencies
- Added
//Q:CONFIG
completion if//DEPS io.quarkus:quarkus
is found - Fixed running JBang installed via scoop on Windows
- Fixed bad looking documentation on hover on
//DEPS
- Updated various dependencies
- Automatically save document after selecting a result in
//DEPS
completion - Save document before running/debugging with JBang
- Added
//JAVA 21
completion - Added
--enable-http
and--enable-https
completions for//NATIVE_OPTIONS
directive - Built with Node 18
- Added code action to find dependency for missing class, on Maven Central
- Added completion for local
//DEPS
(requires JBang 0.109.0+) - Fixed running JBang commands from the command palette
- Fixed apply dependency change on original file uri, not active editor
- Bundle the extension with esbuild
- Update JBang catalog schema (from jbang-idea)
- Added completion for
//PREVIEW
(requires JBang 0.108.0+)
- Added autocompletion for
jbang-catalog.json
files. - Added completion for
//MODULE
and//MAIN
directives (requires JBang 0.104.0+) - Added JBang debug icon
- Fixed hover failing over LATEST versions
- Allowed completion for several
//DESCRIPTION
directives
- Automatic source download when using JBang 0.102.0+
- Added completion for
//FILES
- Display error markers when
//FILES
or//SOURCES
are invalid - Fixed JBang failing if
JAVA_HOME
is set to an invalid location - Added 5s request timeout when searching for dependencies on Maven Central
- Display
Run JBang
menu onjar
files - Fixed JBang header completion
- Fixed NPE on import
- Ignore Java's
Picked up JAVA_TOOL_OPTIONS
message that broke Gitpod integration
- Add completion for
//NATIVE_OPTIONS
,//COMPILE_OPTIONS
,//RUNTIME_OPTIONS
,//GROOVY
,//KOTLIN
- Display
Run JBang
command in quick run menu - Report invalid
//JAVA
version at the proper location - Configure project according to
--release
or-source
value - Provide dependency completion for Kotlin and Groovy files
- Display
Run JBang
codelens for Kotlin and Groovy files - Display
Debug JBang
codelens for Java files - Add new
JBang: install application
command - Fixed script detection in nested folders
- Fixed Chocolatey's JBang support
- Automagically configures JBang-managed JDKs, i.e. no need to configure
java.configuration.runtimes
. - fix: completion after groupid:| didn't work
- If you open a folder containing JBang scripts, the first JBang script found will be used to configure a "Project"'s classpath. When configuring the
java.import.jbang.projectPerScript
setting totrue
, each script in the folder will be assigned a specific classpath. Toggling this setting requires calling theJava: Clean Java Language Server Workspace
command to take effect. - Modifying JBang directives in a file will update the classpath of the file.
- Snippets are provided for JBang directives.
- Autocompletion for dependencies in
//DEPS
- Autocompletion for
//SOURCES
- Partial autocompletion for
//JAVA_OPTIONS
and//JAVAC_OPTIONS
- Display dependency documentation on completion/hover
- JBang scripts can be run from the
Run JBang
codelens, that shows on top of the type declaration or main method, if there is one. - If a (.java) script is included in a Maven or Gradle project's hierarchy, right-clicking on the script and selecting
JBang > Synchronize JBang
will add the script's parent folder to the project's source path and the JBang dependencies will be added to the project's classpath. - Create a new JBang script from an existing template with the
JBang: Create a new script
command. - Annotation processors are automatically detected and configured.
- Partial support for
build.jbang
files: If a folder containingbuild.jbang
is opened, it'll be used to configure the Java settings of its //SOURCES. Currently, changes inbuild.jbang
require manually triggering theJBang > Synchronize JBang
command (via codelens or context menu) to take effect. - Export the script as a native binary, by right-clicking on the script and selecting the
JBang > Export as native binary
menu. This requires GraalVM to be installed with the native-image extension. See https://www.jbang.dev/documentation/guide/latest/usage.html#build-and-run-native-image-experimental