дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
feat(plugins): Services menus on the IDE's own nodes and plugin executors (API 1.18) (#6216)
services.context and services.toolbar menus let plugins act on the IDE's own Services nodes (run configurations, Docker containers): when keys per selected service (serviceProvider, serviceKind, serviceId, serviceName, serviceRunning, runConfigurationId, serviceSelectionCount) and the selection as the command's JSON argument, through a new workbench registerServiceSelectionItems registry fed by ServiceProviderContribution.context. executor = "<title>" on [[contributes.javaAgents]] binds the agent to a plugin executor: Run/Debug '<name>' with <title> beside Run and Debug (run widget, gutter, context menus, Services), the only launches that get the agent. The launch carries the plugin id (RunConfig.executor, or executor in the debug launch extras); the java.agent grant and jar pin are unchanged; without the grant the IDE asks instead of launching. The Services menu of a run configuration now also lists its executors (Coverage, Profile). Fixes #4528
Цей коміт міститься в:
1 джерело
0101d11ac9
коміт
b1ab5afa67
31 files changed
+1105
-148
No files matched your search
@@ -180,7 +180,11 @@ export async function javaLaunchConfig(
|
||||
const agentNote = await remoteJavaAgentNote(rc);
|
||||
if (agentNote) preparation?.report?.(agentNote);
|
||||
// The host adds JetBrains Runtime's flag for it, or says in the console why the session runs without.
|
||||
const enhanced = rc.params?.enhancedClassRedefinition === "true" ? { enhancedClassRedefinition: true } : {};
|
||||
const enhanced = {
|
||||
...(rc.params?.enhancedClassRedefinition === "true" ? { enhancedClassRedefinition: true } : {}),
|
||||
// A plugin executor's launch ("Debug with …"): the host adds that plugin's Java agent.
|
||||
...(rc.executor ? { executor: rc.executor } : {}),
|
||||
};
|
||||
if (kotlin) {
|
||||
return {
|
||||
name: rc.name,
|
||||
|
||||
Reference in new issue
Заблокувати користувача