Skip to content

Tags

Tags

v6.8.31-intellij.10

Toggle v6.8.31-intellij.10's commit message
Set the version to 6.8.31-intellij.10

v6.8.31-intellij.9

Toggle v6.8.31-intellij.9's commit message
Set the version to 6.8.31-intellij.9

v6.8.31-intellij.8

Toggle v6.8.31-intellij.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Check downloads against SHA-256 checksums (#7)

Downloads that the extension runs are checked before they are used. A file that does not match is deleted, and the next start of the language server downloads it again.

- `java-lsp-proxy` and `gradle-lsp-bridge`: SHA-256 from `release-checksums.json` for the extension's own version, checked after a download and when an existing copy is reused.
- java-debug jar, Java Test Runner and Gradle Language Server: SHA-256 next to the pinned version in the source code.
- Version and file names from remote sources are checked before they become part of a path or URL. JDTLS is downloaded straight from download.eclipse.org.

The release workflow gets a job that writes `release-checksums.json` for the new release and commits it to main. Its actions are pinned to commit SHAs, and Dependabot keeps the pins current.

v6.8.31-intellij.7

Toggle v6.8.31-intellij.7's commit message
Add templates for new Java files and code actions that generate members

New files: in a Java file that has no type yet, typing class, interface, record, enum, @interface or exception offers a snippet with the whole declaration, the package of the folder and the name of the file. The server only completes the keyword there; the proxy has it fill in a file template (interpolateFileTemplate, which the VS Code extension runs when a file is created). A license comment, a package statement and imports may already be in the file.

Code actions: anywhere in a class or enum the code actions menu now offers to generate getters and setters (for all fields or the one under the cursor), a constructor, and equals() with hashCode(). The server offers only "Generate toString()". The proxy asks it for the fields, methods and constructors of the class (textDocument/documentSymbol), writes the members itself and adds the actions after the server's. Members that exist are not generated again, static fields are left out, final fields get no setter. JPA entities get no equals() and hashCode(): comparing all their fields is wrong for them. When the editor asks for one kind of action only, such as source.organizeImports on save, nothing is added.

Structure: the Spring Data completion, the file templates and the code actions share one handler for Java files, which mirrors their text once. Requests about library sources and decompiled classes are left to the server.

Bump version to 6.8.31-intellij.7.

v6.8.31-intellij.6

Toggle v6.8.31-intellij.6's commit message
Complete Spring Data query method names

In an interface that extends a Spring Data repository, the names of derived query methods are completed step by step: the subject (findBy, countBy, existsBy, ...), the fields of the entity, the keywords that fit a field's type, And, Or, and the OrderBy clause with Asc and Desc. A name typed without a return type gets one that fits its subject, with the import of List or Optional if the file lacks it.

The server checks these names but does not complete them. The proxy asks it where the entity is declared and which fields it has (textDocument/definition and textDocument/documentSymbol) and puts its suggestions in front of the server's own completion items. Resolving one of these suggestions is answered by the proxy.

Not covered: the method's parameters, fields inherited from a superclass of the entity, and nested properties.

Document mirror: a change whose range points past the end of the text is now applied at the end instead of replacing the whole text.

Bump version to 6.8.31-intellij.6.

v6.8.31-intellij.5

Toggle v6.8.31-intellij.5's commit message
Complete dependencies and properties in pom.xml

The IntelliJ server can now be attached to the XML language, which comes from Zed's XML extension. The server answers every request in a pom.xml with an empty result, so the proxy answers completion there itself.

Coordinates: groupId, artifactId and version of a dependency, plugin, parent or any other block with coordinates are completed from the local Maven repository (~/.m2/repository, or localRepository from ~/.m2/settings.xml). Versions are listed newest first. A plugin without a groupId uses org.apache.maven.plugins. Nothing is looked up on the network.

Properties: after "${" the properties of the file's properties blocks are offered with their values, plus Maven's built-in ones.

The mirror of open documents moved out of the Spring properties completion into its own module, which both completions use.

Bump version to 6.8.31-intellij.5.

v6.8.31-intellij.4

Toggle v6.8.31-intellij.4's commit message
Complete Spring Boot keys in properties files, sort unlikely types last

Properties files: the IntelliJ server can now be attached to the Properties language. In application*.properties and bootstrap*.properties the proxy completes Spring Boot configuration keys with their type and default value. The server answers completion there with an empty list, so the keys come from its intellij.spring.boot.configKeys command, filtered by the text typed so far. Go to definition on a key works through the server itself. A warning is logged once if the server rejects the command, since it is not a documented interface.

Completion order: types from java.awt, com.sun, sun, jdk, org.graalvm and io.micrometer.shaded are sorted after all other items, so java.util.List is offered before java.awt.List. They stay selectable.

Bump version to 6.8.31-intellij.4.

v6.8.31-intellij.3

Toggle v6.8.31-intellij.3's commit message
Open classes without sources as server-generated stubs

Go to definition into a jar without a sources jar, or into a JDK without src.zip, returned a jar:/jrt: class URI that Zed cannot open. The proxy now asks the server for the stub (workspace/textDocumentContent), stores it read-only in the library cache and maps the file back to the class URI for requests inside it.

Bump version to 6.8.31-intellij.3.

v6.8.31-intellij.2

Toggle v6.8.31-intellij.2's commit message
Harden proxy side channel, validate server version, add ca_certificates

v6.8.31-intellij.1

Toggle v6.8.31-intellij.1's commit message
Add IntelliJ language server support