Theia: [plugin-ext]: Modal dialog enhancements

Created on 25 Jun 2020  路  3Comments  路  Source: eclipse-theia/theia

Bug Description:

I found a few issues with the modal notification dialog when I was reviewing https://github.com/eclipse-theia/theia/pull/8080

Steps to Reproduce:

1.
2.
3.


Additional Information

  • Operating System:
  • Theia Version:
dialogs help wanted plug-in system vscode

All 3 comments

to the point about the modal title, obviously it would be nice if extensions could configure the title, but the VS Code API doesn't allow that (there is no title). So since you want to keep your API consistent with theirs, maybe the title could be Information | Warning | Error

And for the button colour, it's always marked as a 'secondary' button:
https://github.com/eclipse-theia/theia/blob/master/packages/core/src/browser/dialogs.ts#L198

but it should only be 'secondary' if at least one other button is present on the modal.

to the point about the modal title, obviously it would be nice if extensions could configure the title, but the VS Code API doesn't allow that (there is no title). So since you want to keep your API consistent with theirs, maybe the title could be Information | Warning | Error

@tetchel for the title, I believe the idea would be to use the applicationName (similarly to other places) and not hardcode the value 'Theia'.

protected applicationName = FrontendApplicationConfigProvider.get().applicationName;
Was this page helpful?
0 / 5 - 0 ratings

Related issues

vince-fugnitto picture vince-fugnitto  路  3Comments

vince-fugnitto picture vince-fugnitto  路  3Comments

Beetix picture Beetix  路  3Comments

pwFoo picture pwFoo  路  3Comments

jeanlucburot picture jeanlucburot  路  3Comments