Keep bundled simpleWorker lean
This commit is contained in:
parent
81bb89dec6
commit
c5041403f8
|
@ -11,9 +11,18 @@ import {Range} from 'vs/editor/common/core/range';
|
|||
import {Selection, SelectionDirection} from 'vs/editor/common/core/selection';
|
||||
import {TPromise} from 'vs/base/common/winjs.base';
|
||||
import {CancellationTokenSource} from 'vs/base/common/cancellation';
|
||||
import Severity from 'vs/base/common/severity';
|
||||
import URI from 'vs/base/common/uri';
|
||||
|
||||
// --------------------------------------------
|
||||
// This is repeated here so it can be exported
|
||||
// --------------------------------------------
|
||||
export enum Severity {
|
||||
Ignore = 0,
|
||||
Info = 1,
|
||||
Warning = 2,
|
||||
Error = 3,
|
||||
}
|
||||
|
||||
// --------------------------------------------
|
||||
// This is repeated here so it can be exported
|
||||
// --------------------------------------------
|
||||
|
|
|
@ -5,9 +5,19 @@
|
|||
'use strict';
|
||||
|
||||
import * as assert from 'assert';
|
||||
import {KeyCode as StandaloneKeyCode} from 'vs/editor/common/standalone/standaloneBase';
|
||||
import {KeyCode as StandaloneKeyCode, Severity as StandaloneSeverity} from 'vs/editor/common/standalone/standaloneBase';
|
||||
import {KeyCode as RuntimeKeyCode} from 'vs/base/common/keyCodes';
|
||||
import {Keybinding} from 'vs/base/common/keybinding';
|
||||
import RuntimeSeverity from 'vs/base/common/severity';
|
||||
|
||||
suite('StandaloneBase', () => {
|
||||
test('exports enums correctly', () => {
|
||||
assert.equal(StandaloneSeverity.Ignore, RuntimeSeverity.Ignore);
|
||||
assert.equal(StandaloneSeverity.Info, RuntimeSeverity.Info);
|
||||
assert.equal(StandaloneSeverity.Warning, RuntimeSeverity.Warning);
|
||||
assert.equal(StandaloneSeverity.Error, RuntimeSeverity.Error);
|
||||
});
|
||||
});
|
||||
|
||||
suite('KeyCode', () => {
|
||||
test('is exported correctly in standalone editor', () => {
|
||||
|
|
1
src/vs/monaco.d.ts
vendored
1
src/vs/monaco.d.ts
vendored
|
@ -345,6 +345,7 @@ declare module monaco {
|
|||
*/
|
||||
MAX_VALUE = 109,
|
||||
}
|
||||
|
||||
export class KeyMod {
|
||||
static CtrlCmd: number;
|
||||
static Shift: number;
|
||||
|
|
Loading…
Reference in a new issue