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

Handle null rootUri #97

Merged
merged 4 commits into from
Mar 19, 2021
Merged

Handle null rootUri #97

merged 4 commits into from
Mar 19, 2021

Conversation

pappasam
Copy link
Owner

If the rootUri is null, don't create a server project. Resolves
#95

If the rootUri is null, don't create a server project. Resolves
#95
@pappasam pappasam merged commit 6a743cd into main Mar 19, 2021
@pappasam pappasam deleted the resolve-initialize-regression branch March 19, 2021 19:45
msg = f"Invalid InitializationOptions, using defaults: {error}"
server.show_message(msg, msg_type=MessageType.Error)
server.show_message_log(msg, msg_type=MessageType.Error)
server.initialization_options = InitializationOptions()
Copy link
Contributor

Choose a reason for hiding this comment

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

my intention had been that this was handled by creating default options at

self.initialization_options = InitializationOptions()
, not sure if this was broken?

logging the error is clearly a good idea!

Copy link
Owner Author

Choose a reason for hiding this comment

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

Ah, yes, this is redundant, I'll fix now

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.

2 participants