Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
cmoog wants to merge 1 commit into coder:master from cmoog:extension-cta
Closed

Extension divergence help information in the UI #2185

cmoog wants to merge 1 commit into coder:master from cmoog:extension-cta

Conversation

Copy link
Contributor

@cmoog cmoog commented Oct 9, 2020
edited
Loading

Adds the following UI to the extension search view:

Screen Shot 2020年10月13日 at 12 06 47 PM

Closes #2132

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

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?

ntimo reacted with thumbs up emoji
Copy link
Contributor Author

cmoog commented Oct 9, 2020

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

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
Copy link
Member

code-asher commented Oct 12, 2020 via email

Possibly dumb question, is downloading extensions to use in non-Microsoft products a TOS violation? That's the sense I had but I'm no lawyer.

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 reacted with thumbs up emoji
@cmoog cmoog requested a review from code-asher October 13, 2020 17:07
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.

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()
});

Copy link
Contributor Author

cmoog commented Oct 15, 2020
edited
Loading

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.

sr229 reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@kylecarbs kylecarbs kylecarbs requested changes

@code-asher code-asher code-asher approved these changes

+1 more reviewer

@nhooyr nhooyr nhooyr requested changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.6.1
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /