Skip to content
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

Add lombok support #23

Merged
merged 2 commits into from Jul 28, 2022
Merged

Add lombok support #23

merged 2 commits into from Jul 28, 2022

Conversation

LDAP
Copy link
Collaborator

@LDAP LDAP commented Jun 24, 2022

Closes #10

@LDAP LDAP force-pushed the feature/lombok branch 2 times, most recently from d663ed5 to d93624f Compare June 24, 2022 16:31
def on_pre_start(cls, window: sublime.Window, initiating_view: sublime.View,
workspace_folders: List[WorkspaceFolder], configuration: ClientConfig) -> Optional[str]:
javaagent_arg = "-javaagent:" + lombok_path(cls.storage_subpath())
# Prevent adding the argument multiple times
Copy link
Member

Choose a reason for hiding this comment

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

I don't think the case when argument is added multiple times should be possible as on_pre_start should be always called with freshly created config. Did you see it happening when testing?

Copy link
Collaborator Author

@LDAP LDAP Jun 27, 2022

Choose a reason for hiding this comment

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

Yes I discovered that issue while testing. Every time I executed the restart server command the argument was readded.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Troubleshoot Server command does add the argument too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@rwols Should I open an issue in sublimelsp/LSP or is this intended behavior?

@LDAP LDAP changed the base branch from main to feature/pinServerVersion July 28, 2022 07:17
@LDAP LDAP changed the base branch from feature/pinServerVersion to main July 28, 2022 07:17
@LDAP LDAP merged commit 6d9c345 into main Jul 28, 2022
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.

Lombok support
2 participants