Skip to content

Java server started when clicking on 'config launch config' #142

Closed

Description

  • Java extension pack installed
  • have a non Java project open in VSCode
  • open the debug viewlet and click on 'configure launch config'.
  • Surprisingly, this takes a few seconds. Check the status line and see that the Java language server is starting

-> As I'm in a non-Java project, the Java debug extension should detect that and not try to contribute a debug configuration and start the Java language server

Activity

  1. testforstephen commented on Nov 9, 2017

    @testforstephen
    Contributor

    Because VSCode stopped supporting onDebug:type activation event, java debugger can only configure the activation event onDebug. It seems Java debugger/Language server extension will be activated so long as the user clicks F5 on any project.

  2. gregvanl commented on Jan 18, 2018

    @gregvanl

    Another scenario where this is problematic is if the user does not have a launch.json in their workspace.
    For example: Create a new Express App and then press F5.
    In this case, the debugger calls each installed extension which activates on onDebugInitialConfiguration. The Java Debugger was changed recently to activate onDebugInitialConfigurations (from onDebug) but in the non-launch.json scenario, the Java Debugger extension is activated and there is long delay without any status to the user while the Java Language Server is started.

  3. andxu commented on Mar 5, 2018

    @andxu
    Contributor

    DUP as #238, closing this one.

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions