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

Update shouldProvide.ts #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blackmiaool
Copy link

For some paths like "@/a.js".
It's very common in vue-cli project.

For some paths like "@/a.js". 
It's very common in vue-cli project.
src/shouldProvide.ts Outdated Show resolved Hide resolved
@@ -50,8 +51,15 @@ function startsWithADot(textCurrentLine: string, position: number) {
&& textWithinString[0] === '.';
}

function startsWithAtPath(textCurrentLine: string, position: number) {

Choose a reason for hiding this comment

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

Suggested change
function startsWithAtPath(textCurrentLine: string, position: number) {
function startsWithAnAtSymbol(textCurrentLine: string, position: number) {

Hey, you changed the name as I suggested, but you left the function name itself unchanged.
You should update that too.
Have a nice day 😄

Copy link
Author

Choose a reason for hiding this comment

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

Sorry about that. I'm outside now so I used github's "Add suggestion to batch" function to merge your change. I'll fix it on Monday.

Copy link
Author

Choose a reason for hiding this comment

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

done

Co-Authored-By: blackmiaool <blackmiaool@gmail.com>
Copy link

@MarvinJWendt MarvinJWendt left a comment

Choose a reason for hiding this comment

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

LGTM :)

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.

None yet

2 participants