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

Make the Plugin folder notification user friendly #5731

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

chattarajoy
Copy link
Contributor

Fixes #5693.

The message displayed contained an encoded URI, added changes to decode it before displaying the message.

@akosyakov
Copy link
Member

Thank you for the PR. We should use FileSystem.getFsPath, see coding guidelines: https://github.com/theia-ide/theia/wiki/Coding-Guidelines#frontend-fs-path

@@ -265,7 +265,7 @@ export class HostedPluginManagerClient {
if (UriSelection.is(result)) {
if (await this.hostedPluginServer.isPluginValid(result.uri.toString())) {
this.pluginLocation = result.uri;
this.messageService.info('Plugin folder is set to: ' + result.uri.toString());
this.messageService.info('Plugin folder is set to: ' + decodeURI(result.uri.toString()));
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use result.uri.toString(true) instead.

Copy link
Member

Choose a reason for hiding this comment

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

thinking again, LabelProvider.getLongName should be used to a display string from a URI to align with the rest of UI

@kittaakos
Copy link
Contributor

@chattarajoy, please squash your commits.

Signed-off-by: Joy Lal Chattaraj <Joylal4896@gmail.com>
@chattarajoy
Copy link
Contributor Author

@kittaakos, have squashed the commits

@kittaakos
Copy link
Contributor

@kittaakos, have squashed the commits

I am trying this now on Windows.

@kittaakos
Copy link
Contributor

It looks better now on Windows. Thank you for the help, @chattarajoy!

Screen Shot 2019-07-18 at 16 24 01

@kittaakos kittaakos self-requested a review July 18, 2019 14:25
Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

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

I have verified it on Windows; it works as expected. 👍

@kittaakos kittaakos merged commit d4a15ad into eclipse-theia:master Jul 18, 2019
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.

[hosted-plugin] Make the Plugin folder notification user friendly
3 participants