-
Notifications
You must be signed in to change notification settings - Fork 874
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
Fix for outline tab not loading in case package-info.java file is present in the workspace in vscode #6642
Conversation
cc/ @lahodaj @MartinBalin opened against delivery - please take a look with respect to NB20. What is the impact for the IDE here? |
Let me take a step back. So, the LSP server produces So, we need to do something about the package in the Outline. There are three variants:
I think variant 2 is disqualified, as it breaks the breadcrumbs. I don't have a strong opinion on decision between variant 1 and variant 3 - I wonder if @dbalek or @MartinBalin have some opinions here. Regarding how does this affect the IDE - the NetBeans Swing UI is not affected at all, AFAIK. The ASF VS Code extension is affected I think, but has been for quite some time, I believe. I personally don't see a strong need to push for integrating to NB 20. I personally think this can be "backported" to the Java Platform Support extension if needed. |
I'm in favour of not showing package in outline view. Just fix it as Dusan found there is some invalid position sent over LSP when there is package-info.java. Fix this and not push it to 20. |
OK, moved off delivery to master, and removed milestone. That brought in two commits that haven't reached master yet, so depending on what happens with this, please make sure not to merge those commits into master early! |
If I can add something here, Java Redhat extension which is widely used as language support in vscode is showing code outline as shown in variant 1, since users would already be familiar with that sort of outline pattern, in my opinion it would be great if we can keep variant 1 as code outline pattern which follows redhat style (since users migrating from redhat extension would be in considerable number). |
@Achal1607, I think I am fine with variant 1, but please note the current patch implements variant 2, as hence needs to be changed to implement variant 1. |
91fab89
to
ce721e1
Compare
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.
Looks sensible to me, but please tweak the history to remove the extraneous commits (I thought these would disappear, but they don't seem to - unclear why). Thanks!
ce721e1
to
b199fed
Compare
…sent in the workspace in vscode Signed-off-by: Achal Talati <achal.talati@oracle.com>
b199fed
to
9819bc8
Compare
VSCodeExt job fails even after restart:
|
I restarted once more, and the job seems to pass now. I don't see how this patch could cause a failure like this. |
I'll merge later tonight, unless there are objections. |
Package range was not being calculated in the object sent to the client from the server due to that error was thrown in the client of
undefined
range.Please see:
oracle/javavscode#23
After fix:

^Add meaningful description above
By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -
Please make sure (eg.
git log
) that all commits have a valid name and email address for you in the Author field.If you're a first time contributor, see the Contributing guidelines for more information.
If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.