-
Notifications
You must be signed in to change notification settings - Fork 193
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
Improve database download prompt when creating query #3016
Conversation
This changes the skeleton query wizard to not prompt for database download after creating a query by default. Instead, it will show a message with a button to download a database which will launch the same prompt.
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.
Thanks for this! A couple of comments from me. I also agree that the notifications are a bit wordy, but I don't have much inspiration for other options 😅
@jf205, do you have any opinions about the notification wording now that you can see them "in action"? 📝
extensions/ql-vscode/src/local-queries/skeleton-query-wizard.ts
Outdated
Show resolved
Hide resolved
extensions/ql-vscode/src/local-queries/skeleton-query-wizard.ts
Outdated
Show resolved
Hide resolved
const openFileArgs = [ | ||
join(this.qlPackStoragePath, this.folderName, this.fileName), | ||
]; | ||
const queryString = encodeURI(JSON.stringify(openFileArgs)); | ||
return `[${this.fileName}](command:vscode.open?${queryString})`; |
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.
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've tried using a URI
to fix this. Let me know if it doesn't work, then we can pair on getting it to work on Windows.
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.
Works for me now! Thanks ✨
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.
Thanks for the edits! Looks good 🤩
This improves the database download prompt when creating a query by removing it from the default flow. Instead, the user will get a notification with information on how they can download a database. There are 3 scenarios:
No notification
I'm very open to suggestions on how to better phrase these notifications, they are currently a bit wordy and repetitive.
Checklist
ready-for-doc-review
label there.