sdedic opened a new pull request #3383: URL: https://github.com/apache/netbeans/pull/3383
Still a draft, waiting for #3382 to be merged. Shelved from local working dir. It turned out that simply o.n.api.project.Project 'cookie' exposed is not sufficient for presenting sensible actions. The PR makes some additional checks and adds `is:project` and `is:projectRoot` magic labels to LSP exported `contextValue`s. Overview of changes made in LSP server: - just physical folders - that is convertible to j.io.File are marked as `is:folder`. This prevents strange things as 'New from Template' on a folder in a JAR ;) - `is:project` is placed on a Node that has `Project` in its Lookup, and also a `FileObject` that correspond to that project's root directory. Since there are some grouping nodes (i.e. Build Scripts) that **also** refer to the project root dir, there's an additional check that if a node represents a project root (implies a folder) then its immediate parent node must NOT expose the same project. - `is:projectRoot` is put on projects that are root in their possible multi-project setup `package.json` was updated to enable actions using these new semantics/tags. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
