-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8365491: VSCode IDE: add basic configuration for the Oracle Java extension #26759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👋 Welcome back mhaessig! A progress list of the required criteria for merging this PR into |
@mhaessig This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 29 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
Looks like a reasonable direction to me. I would suggest to drop:
while it may be good for some, it may lead to surprising effects for others people that don't know about this setting. Also, including:
might make sense. |
Can you elaborate on the surprising results? When developing the JDK we will most probably use features not supported by the
Good point. That will lead to unwanted changes if true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hard to say exactly if these changes are what is needed, but they look sane, and if you have verified that it works then I'm okay with it.
Thanks for improving the IDE support!
In general, it can be anything. From relatively minor problems like not working code completion in some corner case, to a complete failure of the Java editor features. When nbjavac is disabled, the javac in the JDK on which the extension runs needs to be "close enough" to the version of javac on which nbjavac is based (I believe it is currently ~JDK 24). And depending on the differences between the version against which the extension is built and the real javac in JDK, the there may be unobservable, minor or major negative effects. If the runtime JDK is too old, there's a warning. But if it is newer, then it is expected the user knows what they are doing. And I am not sure if everyone using this task will know how to interpret potential failures, given they didn't knowingly select the option. (It is true that JDK 24 and JDK 25 seem to be close enough, so that there are no major effects, and maybe not even minor effects. That may or may not be the case with any upcoming JDK 26 version.) |
I was not aware that it had to be "close" to nbjavac. Then enabling nbjavac makes much more sense. Thank you for explaining this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @mhaessig!
Thank you for your reviews! /integrate |
Going to push as commit fa2eb61.
Your commit was automatically rebased without conflicts. |
This PR adds a basic configuration for the Oracle Java VSCode extension to the
vscode-project-*
targets.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26759/head:pull/26759
$ git checkout pull/26759
Update a local copy of the PR:
$ git checkout pull/26759
$ git pull https://git.openjdk.org/jdk.git pull/26759/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26759
View PR using the GUI difftool:
$ git pr show -t 26759
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26759.diff
Using Webrev
Link to Webrev Comment