Skip to content

Extension divergence help information in the UI #2185

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

Closed
wants to merge 1 commit into from
Closed

Extension divergence help information in the UI #2185

wants to merge 1 commit into from

Conversation

cmoog
Copy link
Contributor

@cmoog cmoog commented Oct 9, 2020

Adds the following UI to the extension search view:

Screen Shot 2020-10-13 at 12 06 47 PM

Closes #2132

@nhooyr nhooyr requested a review from kylecarbs October 9, 2020 20:33
Copy link
Contributor

@nhooyr nhooyr left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

@@ -31,32 +31,6 @@ index f2ea1bd37010b1eb8a43ce9beaae4a88810f6e2d..3f660f9981921ec465d2b8809a1a5ea5
const yarnrc = fs.readFileSync(path.join(REPO_ROOT, 'remote', '.yarnrc'), 'utf8');
const target = /^target "(.*)"$/m.exec(yarnrc)[1];
return target;
diff --git a/build/lib/extensions.js b/build/lib/extensions.js
Copy link
Contributor

Choose a reason for hiding this comment

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

Something went wrong with the diff here. I think you need to rebase your branch and clean.

Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

NOTE: code-server has it's own marketplace of open-source extensions due to 
<a href="https://github.com/cdr/code-server/blob/master/doc/FAQ.md#differences-compared-to-vs-code" target="_blank">legal distribution restrictions</a>.
VSIX assets from the official marketplace can be 
<a onClick="MAKE THIS EXECUTE THE UPLOAD VSIX COMMAND">uploaded<a/>.

Thoughts on something like this?

@cmoog
Copy link
Contributor Author

cmoog commented Oct 9, 2020

@kylecarbs I do think a link to the official marketplace is worth a lot.

@kylecarbs
Copy link
Member

Oh yeah I'm down to include that.

Just tryna reduce the size of the copy as much as possible.

@nhooyr nhooyr added this to the v3.6.1 milestone Oct 12, 2020
@code-asher
Copy link
Member

code-asher commented Oct 12, 2020 via email

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Looks good, +1 from me on reducing the copy size as much as possible. Should we store the dismissal state for subsequent page loads or would it be more beneficial have it show more often?

@cmoog cmoog requested a review from code-asher October 13, 2020 17:07
@sr229
Copy link
Contributor

sr229 commented Oct 14, 2020

My nitpick here is use the same caution dialogue indicator used in Git when you're exceeding the 50-character limit so the user will see it immediately, it will add a sense of visual priority of what to read first.

@code-asher
Copy link
Member

Hmm, that's an interesting idea, it looks like it pops up below the textbox as you type. I lean toward keeping the current method because that popup floats and would probably cover an extension or two in the search results which could be frustrating. We could only show it if there weren't any results, but I think having results but not the right ones might be a common case (just a guess though) and those cases would never get the help text.

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Looks good to me. BTW if we still want to add a link for jumping directly to the upload we can do it with something like:

uploadButton.addEventListener("click", () => {
  this.instantiationService.createInstance(InstallVSIXAction, InstallVSIXAction.ID, InstallVSIXAction.LABEL).run()
});

@cmoog
Copy link
Contributor Author

cmoog commented Oct 15, 2020

Closing this PR as it has become clear that linking to or referencing the existence of the official marketplace is a no-go. Suggesting users to upload via the dropdown has the same problem. Keeping the helper text without including instructions for resolution will cause more confusion than it's worth. Eventually, if we ever move to open-source our extension marketplace, an overlay of this nature will be appropriate.

😢 I'll open a new PR with a revised issue template for extension requests.

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.

5 participants