Skip to content

Commit

Permalink
Revert "Use DOM API (fixes #105505)"
Browse files Browse the repository at this point in the history
This reverts commit e995f10.
  • Loading branch information
chrmarti committed Aug 28, 2020
1 parent 4fbb52b commit bb9287b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/vs/workbench/contrib/welcome/overlay/browser/welcomeOverlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,43 +38,43 @@ interface Key {
const keys: Key[] = [
{
id: 'explorer',
arrow: '',
arrow: '←',
label: localize('welcomeOverlay.explorer', "File explorer"),
command: 'workbench.view.explorer'
},
{
id: 'search',
arrow: '',
arrow: '←',
label: localize('welcomeOverlay.search', "Search across files"),
command: 'workbench.view.search'
},
{
id: 'git',
arrow: '',
arrow: '←',
label: localize('welcomeOverlay.git', "Source code management"),
command: 'workbench.view.scm'
},
{
id: 'debug',
arrow: '',
arrow: '←',
label: localize('welcomeOverlay.debug', "Launch and debug"),
command: 'workbench.view.debug'
},
{
id: 'extensions',
arrow: '',
arrow: '←',
label: localize('welcomeOverlay.extensions', "Manage extensions"),
command: 'workbench.view.extensions'
},
// {
// id: 'watermark',
// arrow: '',
// arrow: '⤹',
// label: localize('welcomeOverlay.watermark', "Command Hints"),
// withEditor: false
// },
{
id: 'problems',
arrow: '',
arrow: '⤹',
label: localize('welcomeOverlay.problems', "View errors and warnings"),
command: 'workbench.actions.view.problems'
},
Expand All @@ -85,20 +85,20 @@ const keys: Key[] = [
},
// {
// id: 'openfile',
// arrow: '',
// arrow: '⤸',
// label: localize('welcomeOverlay.openfile', "File Properties"),
// arrowLast: true,
// withEditor: true
// },
{
id: 'commandPalette',
arrow: '',
arrow: '↖',
label: localize('welcomeOverlay.commandPalette', "Find and run all commands"),
command: ShowAllCommandsAction.ID
},
{
id: 'notifications',
arrow: '',
arrow: '⤵',
arrowLast: true,
label: localize('welcomeOverlay.notifications', "Show notifications"),
command: 'notifications.showList'
Expand Down Expand Up @@ -186,7 +186,7 @@ class WelcomeOverlay extends Disposable {
.forEach(({ id, arrow, label, command, arrowLast }) => {
const div = dom.append(this._overlay, $(`.key.${id}`));
if (arrow && !arrowLast) {
dom.append(div, $('span.arrow', {}, arrow));
dom.append(div, $('span.arrow')).innerHTML = arrow;
}
dom.append(div, $('span.label')).textContent = label;
if (command) {
Expand All @@ -196,7 +196,7 @@ class WelcomeOverlay extends Disposable {
}
}
if (arrow && arrowLast) {
dom.append(div, $('span.arrow', {}, arrow));
dom.append(div, $('span.arrow')).innerHTML = arrow;
}
});
}
Expand Down

0 comments on commit bb9287b

Please sign in to comment.