Skip to content

Shortcut: command java.actions does not work #1012

Closed

Description

@hugarty

I'm trying use shortcuts to generate java code, but java.action isn't working

Environment
  • Operating System: elementary OS 5.0 Juno (Ubunto 18.04.2 LTS)
  • JDK version: openjdk 11.0.3
  • Visual Studio Code version: 1.36.1; 2213894ea0415ee8c85c5eea0d0ff81ecc191529; x64
  • Java extension version: Java Extension Pack 0.7.1
  • $JAVA_HOME: /usr/lib/jvm/java-1.11.0-openjdk-amd64/bin
Steps To Reproduce
  1. Set a new shortcut for command java.action.generateConstructorsPrompt
    Ex:
    image

  2. Try it in a java class

Current Result

Show a message: Internal Error
image

Expected Result

image

Additional Informations

I tried java.action.generateConstructorsPrompt and java.action.organizeImports.
Both commands does not work.

Activity

  1. testforstephen commented on Aug 14, 2019

    @testforstephen
    Collaborator

    java.action.generateConstructorsPrompt and java.action.organizeImports are private commands used by internal code, don't support trigger by shortcut yet.

    For organize import, you should bind shortcut key for another global command editor.action.organizeImports instead.

  2. robstryker commented on Oct 29, 2026

    @robstryker
    Contributor

    This is not planned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions