nozjkoitop opened a new pull request, #9216: URL: https://github.com/apache/netbeans/pull/9216
### Make auto priming optional `java.lsp.server` automatically attempts project priming during project open by invoking `ActionProvider.COMMAND_PRIME` when the action is available and enabled. Priming is useful by default, but currently there is no server-level switch to suppress it for environments where automatic background build activity is undesirable (resource-constrained, offline, policy-restricted, or deterministic startup scenarios) This behavior has caused user-facing issues (f.e. https://github.com/oracle/javavscode/issues/490) This change introduces an explicit `disableProjectPriming` flag for automatic project priming in Server.primeProjects(...) Key points: * Default behavior unchanged (priming still on by default) * Project-open bookkeeping/synchronization remains unchanged * Low risk, narrow scope ### PR approval and merge checklist: 1. [ ] Was this PR [correctly labeled](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=240884239#PRsandYouAreviewerGuide-PRtriggeredCIJobs(conditionalCIpipeline)), did the right tests run? When did they run? 2. [ ] Is this PR [squashed](https://cwiki.apache.org/confluence/display/NETBEANS/git%3A+squash+and+merge)? 3. [ ] Are author name / email address correct? Are [co-authors](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors#creating-co-authored-commits-on-the-command-line) correctly listed? Do the commit messages need updates? 3. [ ] Does the PR title and description still fit after the Nth iteration? Is the description sufficient to appear in the release notes? If this PR targets the delivery branch: [don't merge](https://cwiki.apache.org/confluence/display/NETBEANS/Pull+requests+for+delivery). ([full wiki article](https://cwiki.apache.org/confluence/display/NETBEANS/PRs+and+You+-+A+reviewer+Guide)) </details> -- 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
