Skip to content

Conversation

@dustinbyrne
Copy link
Collaborator

No description provided.

classType.getPackageName().replace('.', '/'),
classType.getClassFile().getSourceFile()
};
final List<String> parts = new ArrayList(Arrays.asList("src", "main", "java"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we weren't doing this. In VSCode, if the project structure doesn't match this convention, it can actually break the "View source" link.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have a better alternative right now. The source path we can grab from the jar is partial and may match many paths. We have another branch open to explore better solutions.

Copy link
Collaborator Author

@dustinbyrne dustinbyrne Mar 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be clear, this heuristic is more likely to resolve to a real file than otherwise until we have a better solution in place.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I think we should pull this out. It makes things worse in VSCode which is the #1 target environment.

@dustinbyrne
Copy link
Collaborator Author

Merged with #57. Moving to #62.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants