-
Notifications
You must be signed in to change notification settings - Fork 21
(GH-66) Fix go to definition #65
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
(GH-66) Fix go to definition #65
Conversation
496ff48 to
a77cc1b
Compare
a77cc1b to
fe567bf
Compare
| end | ||
| private_class_method :function_name | ||
|
|
||
| def self.build_uri(path) |
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.
I wonder if this should be a generic helper. Although, nothing else is broken yet...
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.
I see this being useful in other providers that handle opening or doing things to files
| end | ||
| private_class_method :function_name | ||
|
|
||
| def self.build_uri(path) |
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.
Do we need unit tests on this?
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.
Sure
c7b8676 to
ef8286f
Compare
|
@glennsarti did rubocop rules change recently? Tests work, but rubocop is now complaining about hash alignment in files i didn't touch |
|
I'm happy to merge this without red CI. Rubocop is tested last for a reason :-) |
This commit fixes building file paths on platforms that use leading slashes. Before the `file://` uri had too many slashes with a path that starts with a backslash. This fix checks the string to see if it starts with a slash and adds the appropriate amount of slashes.
ef8286f to
61fcfbb
Compare
glennsarti
left a comment
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.


Fixes #66, reported in puppetlabs/puppet-vscode#331