✨feat(editors): add JetBrains IDE plugin with LSP4IJ integration - #2168
Merged
Conversation
Adds editors/jetbrains, a Gradle-based IntelliJ Platform plugin that mirrors the VS Code extension: mq-lsp language server support via LSP4IJ (completion, hover, diagnostics, formatting), TextMate-based syntax highlighting reusing the VS Code grammar, mq-dbg debugging via LSP4IJ's Debug Adapter Protocol support, run/execute actions, a Settings UI, and a GitHub Releases binary installer.
IntelliJ's bundle loader detects the bundle type by looking for a `package.json`, `info.plist` or `*.tmBundle` file and rejects the bundle when none is present, so `.mq` files got no syntax highlighting. Ship a VS Code style `package.json` plus `language-configuration.json` and extract every bundle resource, skipping registration when extraction fails. Also read the plugin version off the plugin classloader's descriptor instead of `PluginManagerCore.getPlugin(PluginId.getId(...))`: `PluginId` became a Kotlin class in the 2025.x platform, so the emitted `PluginId.Companion` reference fails with `NoSuchFieldError` on the older platforms this plugin still supports.
…rning .gitignore's bare `gradle` entry silently excluded the whole gradle/ directory, including gradle-wrapper.properties, so gradle-wrapper.jar was never present in CI and ./gradlew failed with "Unable to access jarfile". Narrow the ignore to just the jar (still kept out of git) and track gradle-wrapper.properties instead. CI now installs Gradle via gradle/actions/setup-gradle and runs `gradle buildPlugin` directly rather than depending on the uncommitted wrapper jar. Also removes unnecessary parentheses in MqDebugAdapterDescriptor.kt flagged by detekt (UnnecessaryParentheses).
Check in gradle-wrapper.jar so ./gradlew works without a system Gradle install, bump the wrapper to 9.7.0 (latest), and pin distributionSha256Sum for integrity verification. CI now builds via ./gradlew instead of a separately pinned system Gradle version, keeping the version in one place.
Marketplace vendor email isn't required and will be managed via the vendor profile instead.
harehare
force-pushed
the
feat/jetbrains-plugin
branch
from
August 11, 2026 13:22
4ed2021 to
0aa0eb5
Compare
harehare
marked this pull request as ready for review
August 12, 2026 00:44
Replace the gradient pipeline mark with a minimal flat "M" glyph sized for JetBrains Marketplace (40x40) and add a dedicated pluginIcon_dark.svg for dark IDE themes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds editors/jetbrains, a Gradle-based IntelliJ Platform plugin that mirrors the VS Code extension: mq-lsp language server support via LSP4IJ (completion, hover, diagnostics, formatting), TextMate-based syntax highlighting reusing the VS Code grammar, mq-dbg debugging via LSP4IJ's Debug Adapter Protocol support, run/execute actions, a Settings UI, and a GitHub Releases binary installer.
Type of Change
Checklist
cargo fmtandcargo clippyand addressed any warningsjust test-alland all tests pass/docs, crateREADME.md) if neededAdditional Context