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

fix: gf over a 'file://...' path and #3310 issue (v2) #3396

Merged
merged 8 commits into from
Jan 20, 2019
Merged

Conversation

jpoon
Copy link
Member

@jpoon jpoon commented Jan 20, 2019

What this PR does / why we need it:
Based on #3311, addressing my own CR comment (#3311 (comment)) so I can fix it and push a release :)

Hope you don't mind @pikulev

Which issue(s) this PR fixes
#3310

Special notes for your reviewer:

@pikulev
Copy link
Contributor

pikulev commented Jan 20, 2019

@jpoon I've just noticed :) It is great, thank you!

@jpoon jpoon merged commit c3c80e2 into master Jan 20, 2019
@jpoon jpoon deleted the BRANCHNAME branch January 20, 2019 10:18
@@ -83,31 +89,38 @@ export class FileCommand extends node.CommandBase {
}
} else {
// Using a filename, open or create the file
this._arguments.name = <string>untildify(this._arguments.name);
this._arguments.name = this._arguments.name.replace('^file://', '');
Copy link
Contributor

@pikulev pikulev Jan 21, 2019

Choose a reason for hiding this comment

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

@jpoon 'file:///Users/user/test.js'.replace('^file://', '') returns
"file:///Users/user/test.js"
Maybe it should be .replace(/^file:\/\//, '')

I've created a PR #3402

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