custom-electron-titlebar 4.1.0 → 4.1.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/enums/menu-state.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/{menu/menu.d.ts → menu.d.ts} +9 -9
- package/dist/menubar.d.ts +10 -11
- package/dist/{menu/menuitem.d.ts → menuitem.d.ts} +18 -17
- package/dist/titlebar.d.ts +14 -14
- package/dist/types/custom-item.d.ts +7 -0
- package/dist/types/declaration.d.ts +6 -0
- package/dist/types/menubar-options.d.ts +30 -0
- package/dist/types/titlebar-options.d.ts +61 -0
- package/dist/{browser → vs/base/browser}/browser.d.ts +3 -3
- package/dist/{browser → vs/base/browser}/event.d.ts +1 -1
- package/dist/{browser → vs/base/browser}/iframe.d.ts +0 -0
- package/dist/{browser → vs/base/browser}/keyboardEvent.d.ts +1 -1
- package/dist/{browser → vs/base/browser}/mouseEvent.d.ts +0 -0
- package/dist/{common → vs/base/common}/arrays.d.ts +0 -0
- package/dist/{common → vs/base/common}/async.d.ts +1 -1
- package/dist/{common → vs/base/common}/charCode.d.ts +0 -0
- package/dist/{common → vs/base/common}/color.d.ts +2 -5
- package/dist/{common → vs/base/common}/dom.d.ts +5 -5
- package/dist/{common → vs/base/common}/event.d.ts +4 -4
- package/dist/{common → vs/base/common}/iterator.d.ts +1 -1
- package/dist/{common → vs/base/common}/keyCodes.d.ts +1 -1
- package/dist/{common → vs/base/common}/lifecycle.d.ts +0 -0
- package/dist/{common → vs/base/common}/linkedList.d.ts +1 -1
- package/dist/{common → vs/base/common}/platform.d.ts +3 -3
- package/index.js +1 -0
- package/main.js +1 -0
- package/package.json +5 -5
- package/dist/index.js +0 -1
- package/dist/interfaces.d.ts +0 -128
- package/dist/main.js +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -30,6 +30,17 @@ import { setupTitlebar, attachTitlebarToWindow } from "custom-electron-titlebar/
|
|
|
30
30
|
setupTitlebar();
|
|
31
31
|
|
|
32
32
|
function createWindow() {
|
|
33
|
+
// Create the browser window.
|
|
34
|
+
const mainWindow = new BrowserWindow({
|
|
35
|
+
width: 800,
|
|
36
|
+
height: 600,
|
|
37
|
+
titleBarStyle: 'hidden',
|
|
38
|
+
//frame: false, // needed if process.versions.electron < 14
|
|
39
|
+
webPreferences: {
|
|
40
|
+
preload: path.join(__dirname, 'preload.js')
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
33
44
|
...
|
|
34
45
|
|
|
35
46
|
// attach fullscreen(f11 and not 'maximized') && focus listeners
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Color } from "../common/color";
|
|
2
|
-
import { IMenuItem } from "./menuitem";
|
|
3
|
-
import { Disposable } from "../common/lifecycle";
|
|
4
|
-
import { Event } from "../common/event";
|
|
5
1
|
import { MenuItem } from "electron";
|
|
6
|
-
import {
|
|
2
|
+
import { Color } from "vs/base/common/color";
|
|
3
|
+
import { IMenuItem } from "./menuitem";
|
|
4
|
+
import { Disposable } from "vs/base/common/lifecycle";
|
|
5
|
+
import { Event } from "vs/base/common/event";
|
|
6
|
+
import { MenubarOptions } from "./types/menubar-options";
|
|
7
7
|
export declare const MENU_MNEMONIC_REGEX: RegExp;
|
|
8
8
|
export declare const MENU_ESCAPED_MNEMONIC_REGEX: RegExp;
|
|
9
9
|
export interface IMenuOptions {
|
|
@@ -26,19 +26,19 @@ export declare class CETMenu extends Disposable {
|
|
|
26
26
|
private focusedItem?;
|
|
27
27
|
private menuContainer;
|
|
28
28
|
private mnemonics;
|
|
29
|
-
private menubarOptions
|
|
29
|
+
private menubarOptions?;
|
|
30
30
|
private options;
|
|
31
31
|
private closeSubMenu;
|
|
32
32
|
private triggerKeys;
|
|
33
33
|
parentData: ISubMenuData;
|
|
34
34
|
private _onDidCancel;
|
|
35
35
|
get onDidCancel(): Event<void>;
|
|
36
|
-
constructor(container: HTMLElement, menubarOptions
|
|
36
|
+
constructor(container: HTMLElement, menubarOptions?: MenubarOptions, options?: IMenuOptions, closeSubMenu?: () => void);
|
|
37
37
|
setAriaLabel(label: string): void;
|
|
38
38
|
private isTriggerKeyEvent;
|
|
39
39
|
private updateFocusedItem;
|
|
40
40
|
getContainer(): HTMLElement;
|
|
41
|
-
createMenu(items: MenuItem[]): void;
|
|
41
|
+
createMenu(items: MenuItem[] | undefined): void;
|
|
42
42
|
focus(index?: number): void;
|
|
43
43
|
focus(selectFirst?: boolean): void;
|
|
44
44
|
private focusNext;
|
|
@@ -47,7 +47,7 @@ export declare class CETMenu extends Disposable {
|
|
|
47
47
|
private doTrigger;
|
|
48
48
|
private cancel;
|
|
49
49
|
dispose(): void;
|
|
50
|
-
style(style: IMenuStyle): void;
|
|
50
|
+
style(style: IMenuStyle | undefined): void;
|
|
51
51
|
private focusItemByElement;
|
|
52
52
|
private setFocusedItem;
|
|
53
53
|
}
|
package/dist/menubar.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { IMenuStyle } from './menu
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export declare class Menubar extends Disposable {
|
|
1
|
+
import { IMenuStyle } from './menu';
|
|
2
|
+
import { Event } from 'vs/base/common/event';
|
|
3
|
+
import { MenubarOptions } from './types/menubar-options';
|
|
4
|
+
export declare class Menubar {
|
|
6
5
|
private container;
|
|
7
6
|
private options?;
|
|
8
7
|
private menuItems;
|
|
9
8
|
private focusedMenu;
|
|
10
9
|
private focusToReturn;
|
|
11
|
-
private _mnemonicsInUse
|
|
12
|
-
private openedViaKeyboard
|
|
13
|
-
private awaitingAltRelease
|
|
14
|
-
private ignoreNextMouseUp
|
|
10
|
+
private _mnemonicsInUse?;
|
|
11
|
+
private openedViaKeyboard?;
|
|
12
|
+
private awaitingAltRelease?;
|
|
13
|
+
private ignoreNextMouseUp?;
|
|
15
14
|
private mnemonics;
|
|
16
15
|
private _focusState;
|
|
17
16
|
private _onVisibilityChange;
|
|
18
17
|
private _onFocusStateChange;
|
|
19
|
-
private menuStyle
|
|
18
|
+
private menuStyle?;
|
|
20
19
|
private closeSubMenu;
|
|
21
|
-
constructor(container: HTMLElement, options?: MenubarOptions, closeSubMenu?: () => void);
|
|
20
|
+
constructor(container: HTMLElement, options?: MenubarOptions | undefined, closeSubMenu?: () => void);
|
|
22
21
|
private registerListeners;
|
|
23
22
|
setupMenubar(): void;
|
|
24
23
|
private onClick;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EventLike } from "../common/dom";
|
|
2
1
|
import { MenuItem } from "electron";
|
|
2
|
+
import { EventLike } from "vs/base/common/dom";
|
|
3
3
|
import { IMenuStyle, IMenuOptions } from "./menu";
|
|
4
|
-
import { KeyCode } from "
|
|
5
|
-
import { Disposable } from "
|
|
6
|
-
import { MenubarOptions } from "
|
|
4
|
+
import { KeyCode } from "vs/base/common/keyCodes";
|
|
5
|
+
import { Disposable } from "vs/base/common/lifecycle";
|
|
6
|
+
import { MenubarOptions } from "./types/menubar-options";
|
|
7
7
|
export interface IMenuItem {
|
|
8
8
|
render(element: HTMLElement): void;
|
|
9
9
|
isEnabled(): boolean;
|
|
@@ -13,20 +13,21 @@ export interface IMenuItem {
|
|
|
13
13
|
dispose(): void;
|
|
14
14
|
}
|
|
15
15
|
export declare class CETMenuItem extends Disposable implements IMenuItem {
|
|
16
|
-
protected menubarOptions
|
|
16
|
+
protected menubarOptions?: MenubarOptions;
|
|
17
17
|
protected options: IMenuOptions;
|
|
18
|
-
protected menuStyle
|
|
19
|
-
protected container
|
|
20
|
-
protected itemElement
|
|
18
|
+
protected menuStyle?: IMenuStyle;
|
|
19
|
+
protected container?: HTMLElement;
|
|
20
|
+
protected itemElement?: HTMLElement;
|
|
21
21
|
private item;
|
|
22
|
-
private radioGroup
|
|
23
|
-
private labelElement
|
|
24
|
-
private iconElement
|
|
25
|
-
private mnemonic
|
|
22
|
+
private radioGroup?;
|
|
23
|
+
private labelElement?;
|
|
24
|
+
private iconElement?;
|
|
25
|
+
private mnemonic?;
|
|
26
26
|
protected closeSubMenu: () => void;
|
|
27
|
-
protected menuContainer
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
protected menuContainer?: IMenuItem[];
|
|
28
|
+
private menuIcons;
|
|
29
|
+
constructor(item: MenuItem, options?: IMenuOptions, menubarOptions?: MenubarOptions, closeSubMenu?: () => void, menuContainer?: IMenuItem[]);
|
|
30
|
+
getContainer(): HTMLElement | undefined;
|
|
30
31
|
getItem(): MenuItem;
|
|
31
32
|
isEnabled(): boolean;
|
|
32
33
|
isSeparator(): boolean;
|
|
@@ -48,7 +49,7 @@ export declare class CETMenuItem extends Disposable implements IMenuItem {
|
|
|
48
49
|
end: number;
|
|
49
50
|
};
|
|
50
51
|
dispose(): void;
|
|
51
|
-
getMnemonic(): KeyCode;
|
|
52
|
+
getMnemonic(): KeyCode | undefined;
|
|
52
53
|
protected applyStyle(): void;
|
|
53
|
-
style(style: IMenuStyle): void;
|
|
54
|
+
style(style: IMenuStyle | undefined): void;
|
|
54
55
|
}
|
package/dist/titlebar.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Color } from './common/color';
|
|
2
1
|
import { Menu } from 'electron';
|
|
3
|
-
import {
|
|
2
|
+
import { Color } from 'vs/base/common/color';
|
|
3
|
+
import { TitlebarOptions } from './types/titlebar-options';
|
|
4
4
|
export default class Titlebar {
|
|
5
|
-
private titlebar
|
|
6
|
-
private dragRegion
|
|
7
|
-
private windowIcon
|
|
8
|
-
private title
|
|
9
|
-
private menubarContainer
|
|
10
|
-
private windowControls
|
|
11
|
-
private maxRestoreControl
|
|
12
|
-
private container
|
|
13
|
-
private isInactive
|
|
14
|
-
private menubar
|
|
5
|
+
private titlebar?;
|
|
6
|
+
private dragRegion?;
|
|
7
|
+
private windowIcon?;
|
|
8
|
+
private title?;
|
|
9
|
+
private menubarContainer?;
|
|
10
|
+
private windowControls?;
|
|
11
|
+
private maxRestoreControl?;
|
|
12
|
+
private container?;
|
|
13
|
+
private isInactive?;
|
|
14
|
+
private menubar?;
|
|
15
15
|
private options;
|
|
16
|
-
private resizer
|
|
16
|
+
private resizer?;
|
|
17
17
|
private defaultOptions;
|
|
18
18
|
private platformIcons;
|
|
19
19
|
constructor(titlebarOptions?: TitlebarOptions);
|
|
@@ -55,7 +55,7 @@ export default class Titlebar {
|
|
|
55
55
|
* It method set new icon to title-bar-icon of title-bar.
|
|
56
56
|
* @param path path to icon
|
|
57
57
|
*/
|
|
58
|
-
updateIcon(path
|
|
58
|
+
updateIcon(path?: string): void;
|
|
59
59
|
/**
|
|
60
60
|
* Update the default menu or set a new menu.
|
|
61
61
|
* @param menu The menu.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Menu } from "electron";
|
|
2
|
+
import { Color } from "../vs/base/common/color";
|
|
3
|
+
export interface MenubarOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The menu to show in the title bar.
|
|
6
|
+
* You can use `Menu` or not add this option and the menu created in the main process will be taken.
|
|
7
|
+
* **The default menu is undefined**
|
|
8
|
+
*/
|
|
9
|
+
menu?: Menu;
|
|
10
|
+
/**
|
|
11
|
+
* The position of menubar on titlebar.
|
|
12
|
+
* **The default is left**
|
|
13
|
+
*/
|
|
14
|
+
menuPosition?: "left" | "bottom";
|
|
15
|
+
/**
|
|
16
|
+
* Enable the mnemonics on menubar and menu items
|
|
17
|
+
* **The default is true**
|
|
18
|
+
*/
|
|
19
|
+
enableMnemonics?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The background color when the mouse is over the item.
|
|
22
|
+
* **The default is undefined**
|
|
23
|
+
*/
|
|
24
|
+
itemBackgroundColor?: Color;
|
|
25
|
+
/**
|
|
26
|
+
* The color of the svg icons in the menu
|
|
27
|
+
* **The default is black**
|
|
28
|
+
*/
|
|
29
|
+
svgColor?: Color;
|
|
30
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Color } from "../vs/base/common/color";
|
|
2
|
+
import { MenubarOptions } from "./menubar-options";
|
|
3
|
+
export interface TitlebarOptions extends MenubarOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The background color of titlebar.
|
|
6
|
+
* **The default is `#ffffff`**
|
|
7
|
+
*/
|
|
8
|
+
backgroundColor?: Color;
|
|
9
|
+
/**
|
|
10
|
+
* The icon shown on the left side of titlebar.
|
|
11
|
+
* **The default is the favicon of the index.html**
|
|
12
|
+
*/
|
|
13
|
+
icon?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The icon size of titlebar. Value between 16 and 24.
|
|
16
|
+
* **The default is 16**
|
|
17
|
+
*/
|
|
18
|
+
iconSize?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The path of the icons of titlebar.
|
|
21
|
+
*/
|
|
22
|
+
icons?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The shadow color of titlebar.
|
|
25
|
+
*/
|
|
26
|
+
shadow?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Define if the minimize button is enabled.
|
|
29
|
+
* **The default is true**
|
|
30
|
+
*/
|
|
31
|
+
minimizable?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Define if the maximize and restore buttons are enabled.
|
|
34
|
+
* **The default is true**
|
|
35
|
+
*/
|
|
36
|
+
maximizable?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Define if the close button is enabled.
|
|
39
|
+
* **The default is true**
|
|
40
|
+
*/
|
|
41
|
+
closeable?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* When the close button is clicked, the window is hidden instead of closed.
|
|
44
|
+
* **The default is false**
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* Set the order of the elements on the title bar. You can use `inverted`, `first-buttons` or don't add for.
|
|
48
|
+
* **The default is undefined**
|
|
49
|
+
*/
|
|
50
|
+
order?: "inverted" | "first-buttons";
|
|
51
|
+
/**
|
|
52
|
+
* Set horizontal alignment of the window title.
|
|
53
|
+
* **The default value is center**
|
|
54
|
+
*/
|
|
55
|
+
titleHorizontalAlignment?: "left" | "center" | "right";
|
|
56
|
+
/**
|
|
57
|
+
* Sets the value for the overflow of the container after title bar.
|
|
58
|
+
* **The default value is auto**
|
|
59
|
+
*/
|
|
60
|
+
containerOverflow?: "auto" | "hidden" | "visible";
|
|
61
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '
|
|
2
|
-
import { IDisposable } from '
|
|
3
|
-
import * as platform from '
|
|
1
|
+
import { Event } from 'vs/base/common/event';
|
|
2
|
+
import { IDisposable } from 'vs/base/common/lifecycle';
|
|
3
|
+
import * as platform from 'vs/base/common/platform';
|
|
4
4
|
/** A zoom index, e.g. 1, 2, 3 */
|
|
5
5
|
export declare function setZoomLevel(zoomLevel: number, isTrusted: boolean): void;
|
|
6
6
|
export declare function getZoomLevel(): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event } from '
|
|
1
|
+
import { Event } from 'vs/base/common/event';
|
|
2
2
|
export declare type EventHandler = HTMLElement | HTMLDocument | Window;
|
|
3
3
|
export interface IDomEvent {
|
|
4
4
|
<K extends keyof HTMLElementEventMap>(element: EventHandler, type: K, useCapture?: boolean): Event<HTMLElementEventMap[K]>;
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyCode, SimpleKeybinding } from '
|
|
1
|
+
import { KeyCode, SimpleKeybinding } from 'vs/base/common/keyCodes';
|
|
2
2
|
export declare function getCodeForKeyCode(keyCode: KeyCode): number;
|
|
3
3
|
export interface IKeyboardEvent {
|
|
4
4
|
readonly browserEvent: KeyboardEvent;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare class RGBA {
|
|
2
|
-
_rgbaBrand: void;
|
|
3
2
|
/**
|
|
4
3
|
* Red: integer in [0-255]
|
|
5
4
|
*/
|
|
@@ -20,7 +19,6 @@ export declare class RGBA {
|
|
|
20
19
|
static equals(a: RGBA, b: RGBA): boolean;
|
|
21
20
|
}
|
|
22
21
|
export declare class HSLA {
|
|
23
|
-
_hslaBrand: void;
|
|
24
22
|
/**
|
|
25
23
|
* Hue: integer in [0, 360]
|
|
26
24
|
*/
|
|
@@ -56,7 +54,6 @@ export declare class HSLA {
|
|
|
56
54
|
static toRGBA(hsla: HSLA): RGBA;
|
|
57
55
|
}
|
|
58
56
|
export declare class HSVA {
|
|
59
|
-
_hsvaBrand: void;
|
|
60
57
|
/**
|
|
61
58
|
* Hue: integer in [0, 360]
|
|
62
59
|
*/
|
|
@@ -81,9 +78,9 @@ export declare class HSVA {
|
|
|
81
78
|
export declare class Color {
|
|
82
79
|
static fromHex(hex: string): Color;
|
|
83
80
|
readonly rgba: RGBA;
|
|
84
|
-
private _hsla
|
|
81
|
+
private _hsla?;
|
|
85
82
|
get hsla(): HSLA;
|
|
86
|
-
private _hsva
|
|
83
|
+
private _hsva?;
|
|
87
84
|
get hsva(): HSVA;
|
|
88
85
|
constructor(arg: RGBA | HSLA | HSVA);
|
|
89
86
|
equals(other: Color): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IKeyboardEvent } from '
|
|
2
|
-
import { IMouseEvent } from '
|
|
3
|
-
import { Event } from '
|
|
4
|
-
import { IDisposable } from '
|
|
1
|
+
import { IKeyboardEvent } from 'vs/base/browser/keyboardEvent';
|
|
2
|
+
import { IMouseEvent } from 'vs/base/browser/mouseEvent';
|
|
3
|
+
import { Event } from 'vs/base/common/event';
|
|
4
|
+
import { IDisposable } from 'vs/base/common/lifecycle';
|
|
5
5
|
export declare function clearNode(node: HTMLElement): void;
|
|
6
6
|
export declare function removeNode(node: HTMLElement): void;
|
|
7
7
|
export declare function isInDOM(node: Node | null): boolean;
|
|
@@ -143,7 +143,7 @@ export interface EventLike {
|
|
|
143
143
|
stopPropagation(): void;
|
|
144
144
|
}
|
|
145
145
|
export declare const EventHelper: {
|
|
146
|
-
stop: (e: EventLike, cancelBubble?: boolean) => void;
|
|
146
|
+
stop: (e: EventLike, cancelBubble?: boolean | undefined) => void;
|
|
147
147
|
};
|
|
148
148
|
export interface IFocusTracker {
|
|
149
149
|
onDidFocus: Event<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDisposable } from '
|
|
2
|
-
import { LinkedList } from '
|
|
1
|
+
import { IDisposable } from 'vs/base/common/lifecycle';
|
|
2
|
+
import { LinkedList } from 'vs/base/common/linkedList';
|
|
3
3
|
/**
|
|
4
4
|
* To an event a function with one or zero parameters
|
|
5
5
|
* can be subscribed. The event is the subscriber function itself.
|
|
@@ -148,7 +148,7 @@ export declare class Emitter<T> {
|
|
|
148
148
|
private readonly _leakageMon?;
|
|
149
149
|
private _disposed;
|
|
150
150
|
private _event?;
|
|
151
|
-
private _deliveryQueue
|
|
151
|
+
private _deliveryQueue?;
|
|
152
152
|
protected _listeners?: LinkedList<Listener<T>>;
|
|
153
153
|
constructor(options?: EmitterOptions);
|
|
154
154
|
/**
|
|
@@ -167,7 +167,7 @@ export interface IWaitUntil {
|
|
|
167
167
|
waitUntil(thenable: Promise<any>): void;
|
|
168
168
|
}
|
|
169
169
|
export declare class AsyncEmitter<T extends IWaitUntil> extends Emitter<T> {
|
|
170
|
-
private _asyncDeliveryQueue
|
|
170
|
+
private _asyncDeliveryQueue?;
|
|
171
171
|
fireAsync(eventFn: (thenables: Promise<any>[], listener: Function) => T): Promise<void>;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
@@ -59,7 +59,7 @@ export interface INavigator<T> extends INextIterator<T> {
|
|
|
59
59
|
}
|
|
60
60
|
export declare class MappedNavigator<T, R> extends MappedIterator<T, R> implements INavigator<R> {
|
|
61
61
|
protected navigator: INavigator<T>;
|
|
62
|
-
constructor(navigator: INavigator<T>, fn: (item: T) => R);
|
|
62
|
+
constructor(navigator: INavigator<T>, fn: (item: T | null) => R);
|
|
63
63
|
current(): R;
|
|
64
64
|
previous(): R;
|
|
65
65
|
parent(): R;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OperatingSystem } from '
|
|
1
|
+
import { OperatingSystem } from 'vs/base/common/platform';
|
|
2
2
|
/**
|
|
3
3
|
* Virtual Key Codes, the value does not hold any inherent meaning.
|
|
4
4
|
* Inspired somewhat from https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
|
|
File without changes
|
|
@@ -21,17 +21,17 @@ export declare function isRootUser(): boolean;
|
|
|
21
21
|
* the string is all lower case (e.g. zh-tw for Traditional
|
|
22
22
|
* Chinese)
|
|
23
23
|
*/
|
|
24
|
-
export declare const language: string;
|
|
24
|
+
export declare const language: string | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* The OS locale or the locale specified by --locale. The format of
|
|
27
27
|
* the string is all lower case (e.g. zh-tw for Traditional
|
|
28
28
|
* Chinese). The UI is not necessarily shown in the provided locale.
|
|
29
29
|
*/
|
|
30
|
-
export declare const locale: string;
|
|
30
|
+
export declare const locale: string | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* The translatios that are available through language packs.
|
|
33
33
|
*/
|
|
34
|
-
export declare const translationsConfigFile: string;
|
|
34
|
+
export declare const translationsConfigFile: string | undefined;
|
|
35
35
|
export declare const globals: any;
|
|
36
36
|
export declare function setImmediate(callback: (...args: any[]) => void): number;
|
|
37
37
|
export declare const enum OperatingSystem {
|