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

Document how the extension searches the ADB.exe on the system. #21

Closed
3 tasks done
vinicioslc opened this issue Oct 1, 2020 · 5 comments · Fixed by #26
Closed
3 tasks done

Document how the extension searches the ADB.exe on the system. #21

vinicioslc opened this issue Oct 1, 2020 · 5 comments · Fixed by #26
Labels
documentation Issues about documentation and description of project. enhancement New feature or request good first issue Good for newcomers hacktoberfest https://hacktoberfest.digitalocean.com an hacktoberfest issue go ahead and contribute !

Comments

@vinicioslc
Copy link
Owner

vinicioslc commented Oct 1, 2020

Explain in readme.md how the extension try to find the adb.exe and explain how the option ADB:📱 Setup custom ADB location works on README.md.

Requirements:

  • Put the command on commands list section of README.md
  • Create another paragraph at end of README.md describing how ADB:📱 Setup custom ADB location works and the strategy behind.
  • Found a bug

This issue could be helpful for initial contributors, that want to learn about the extension, but don't know where start, so... start studying the code responsible by find ADB wrapper.

@vinicioslc vinicioslc added documentation Issues about documentation and description of project. enhancement New feature or request good first issue Good for newcomers hacktoberfest https://hacktoberfest.digitalocean.com an hacktoberfest issue go ahead and contribute ! labels Oct 1, 2020
@moozzyk
Copy link
Contributor

moozzyk commented Oct 6, 2020

I am wondering if the custom path is actually ever set. If I read the code correctly here is the code that is getting the path from the UI and is supposed to save it:

vscode.window.showOpenDialog(options).then(fileUri => {
if (fileUri && fileUri[0]) {
// replace filename with path
const adbPath = fileUri[0].fsPath.replace(
RegExp(path.basename(fileUri[0].fsPath) + '$', 'i'),
''
)
console.log('Selected file: ' + fileUri[0].fsPath)
console.log('Selected file: ' + adbPath)
vscode.window.showInformationMessage(
'Custom ADB path setted:' + adbPath
)
}

but I don't see the path being actually saved (i.e. there is no call to this.pathManagerInstance.setFilePath).

@vinicioslc
Copy link
Owner Author

vinicioslc commented Oct 6, 2020

Apparently, in addition to documenting you found a bug ahahah, congratulations!
I created a new issue referencing this and also suggested an addition in your pull request (on markdown) to make it perfect.

Thank you for your contribution.

@moozzyk moozzyk mentioned this issue Oct 7, 2020
@moozzyk
Copy link
Contributor

moozzyk commented Oct 7, 2020

I updated the PR as suggested. Also I realized that the PR was opened against a wrong repo so created a new PR that now shows up in PRs here.

@vinicioslc
Copy link
Owner Author

vinicioslc commented Oct 7, 2020

I also noticed this detail about the wrong repo haha, thanks for the contribution!

Oh and also, congratulations on your work at SignalR Swift, i really appreciate your work.

@moozzyk
Copy link
Contributor

moozzyk commented Oct 8, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues about documentation and description of project. enhancement New feature or request good first issue Good for newcomers hacktoberfest https://hacktoberfest.digitalocean.com an hacktoberfest issue go ahead and contribute !
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants