Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6384

Detect another Java support ext and recommend to Disable one

    XMLWordPrintableJSON

Details

    Description

      VSNetBeans currently detects installation of MS Java ext pack and informs user it disables some services of it, code lenses and code completion.

      See https://github.com/apache/netbeans/blob/master/java/java.lsp.server/vscode/src/extension.ts#L284

      conf.update('java.test.editor.enableShortcuts', false, false).then(() => {}, disablingFailed);
      conf.update('java.debug.settings.enableRunDebugCodeLens', false, false).then(() => {}, disablingFailed);
      

      This behaviour should change to better coexist with MS Java ext. 

      VSNetBeans needs to show user a dialog recommending to Enable per workspace one of the Java ext packs. Looking at VSCode API it seems there is still missing API to DISABLE extension programatically, while there is uninstallExtension command?

      Proposed solution is not perfect:

      VSNetBeans will show dialog with text like: Another Java support extension is already installed. It is recommended to use only one Java support per workspace. Please Disable one of Java ext for workspace. OK button to open Extensions panel and user has to do it.... UX is TBD.

      Some context info:

      VSCode plans to stop recommend extensions see https://github.com/microsoft/vscode/issues/136301 in Feb.

      And they are also working on extension sets per workspace https://github.com/microsoft/vscode/issues/40239

      Attachments

        Issue Links

          Activity

            People

              jtulach Jaroslav Tulach
              mbalin Martin Balin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m