Merge from vscode f2d41726ba5a0e8abfe61b2c743022b1b6372010 (#7415)

* Merge from vscode f2d41726ba5a0e8abfe61b2c743022b1b6372010

* add missing files
This commit is contained in:
Anthony Dresser
2019-09-27 23:30:36 -07:00
committed by GitHub
parent d0fb6de390
commit bca7c8e6bd
123 changed files with 1704 additions and 1330 deletions

View File

@@ -781,6 +781,12 @@ export function createStyleSheet(container: HTMLElement = document.getElementsBy
return style;
}
export function createMetaElement(container: HTMLElement = document.getElementsByTagName('head')[0]): HTMLMetaElement {
let meta = document.createElement('meta');
container.appendChild(meta);
return meta;
}
let _sharedStyleSheet: HTMLStyleElement | null = null;
function getSharedStyleSheet(): HTMLStyleElement {
if (!_sharedStyleSheet) {

View File

@@ -698,7 +698,7 @@ export class MenuBar extends Disposable {
private focusPrevious(): void {
if (!this.focusedMenu) {
if (!this.focusedMenu || this.numMenusShown === 0) {
return;
}
@@ -728,7 +728,7 @@ export class MenuBar extends Disposable {
}
private focusNext(): void {
if (!this.focusedMenu) {
if (!this.focusedMenu || this.numMenusShown === 0) {
return;
}