Skip to content

(GH-269) Fix Workspace Symbol Provider #271

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

Merged
merged 5 commits into from
Jul 17, 2020
Merged

Conversation

glennsarti
Copy link
Contributor

@glennsarti glennsarti commented Jul 15, 2020

Fixes #269

Previously if nil was passed into the build_file_uri method it would raise an
obtuse error. This commit instead returns nil of the path is nil, otherwise
it attempts to build a URI for the path.


Previously the Workspace Symbol Provider was not outputting DataTypes and was
unnecessarily output debuging information for Facts. This commit adds support
for DataTypes and ignores Facts. This commit also updates typos in the code
comments.

@glennsarti glennsarti added this to the 1.0.0 milestone Jul 15, 2020
@glennsarti glennsarti force-pushed the gh-269 branch 3 times, most recently from 1ee6f92 to f4069ad Compare July 15, 2020 13:19
@glennsarti glennsarti marked this pull request as ready for review July 15, 2020 13:24
@glennsarti glennsarti requested a review from jpogran July 15, 2020 13:24
@glennsarti glennsarti self-assigned this Jul 15, 2020
Previously if nil was passed into the build_file_uri method it would raise an
obtuse error. This commit instead returns nil of the path is nil, otherwise
it attempts to build a URI for the path.
Previously the Workspace Symbol Provider was not outputting DataTypes and was
unnecessarily output debuging information for Facts.  This commit adds support
for DataTypes and ignores Facts.  This commit also updates typos in the code
comments.
Previously the workspace detection would use the RootURI even if it was nil.
This commit changes the detection to see if the RootURI key exists AND the value
is not nil.
Previously the Workspace Symbols request was not tested as part of the
acceptance suite.  This commit adds a Workspace symbols request test and
refactors the mock editor client to make it easier to be consumed during
development.
Previously the reply_error method was removed which meant that when an invalid
message was passed, it would crash the editor service.  This commit re-adds the
missing method.
@glennsarti
Copy link
Contributor Author

@jpogran merge-y merge-y ?

@jpogran jpogran merged commit ecf705e into puppetlabs:master Jul 17, 2020
@glennsarti glennsarti deleted the gh-269 branch July 22, 2020 12:30
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.

[1.0] Fix Workspace Symbol Provider
2 participants