monaco.d.ts.recipe 3.9 KB
Newer Older
1 2 3 4 5
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

A
Alex Dima 已提交
6
declare namespace monaco {
7

K
Kamran Ayub 已提交
8 9
	// THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY.

A
Alex Dima 已提交
10
	export type Thenable<T> = PromiseLike<T>;
11

12 13 14
	export interface IDisposable {
		dispose(): void;
	}
15

16 17 18
	export interface IEvent<T> {
		(listener: (e: T) => any, thisArg?: any): IDisposable;
	}
19

20 21 22 23 24 25
	/**
	 * A helper that allows to emit and listen to typed events
	 */
	export class Emitter<T> {
		constructor();
		readonly event: Event<T>;
26
		fire(event: T): void;
27 28
		dispose(): void;
	}
A
Alex Dima 已提交
29

30
#include(vs/platform/markers/common/markers): MarkerTag, MarkerSeverity
31
#include(vs/base/common/cancellation): CancellationTokenSource, CancellationToken
J
Johannes Rieken 已提交
32
#include(vs/base/common/uri): URI, UriComponents
33 34
#include(vs/base/common/keyCodes): KeyCode
#include(vs/editor/common/standalone/standaloneBase): KeyMod
35
#include(vs/base/common/htmlContent): IMarkdownString
36 37
#include(vs/base/browser/keyboardEvent): IKeyboardEvent
#include(vs/base/browser/mouseEvent): IMouseEvent
A
Alex Dima 已提交
38
#include(vs/editor/common/editorCommon): IScrollEvent
A
Alex Dima 已提交
39
#include(vs/editor/common/core/position): IPosition, Position
A
Alex Dima 已提交
40
#include(vs/editor/common/core/range): IRange, Range
A
Alex Dima 已提交
41
#include(vs/editor/common/core/selection): ISelection, Selection, SelectionDirection
A
Alex Dima 已提交
42
#include(vs/editor/common/core/token): Token
43
}
44

A
Alex Dima 已提交
45
declare namespace monaco.editor {
46
#include(vs/editor/browser/widget/diffNavigator): IDiffNavigator
47
#includeAll(vs/editor/standalone/browser/standaloneEditor;modes.=>languages.;editorCommon.=>):
48
#include(vs/editor/standalone/common/standaloneThemeService): BuiltinTheme, IStandaloneThemeData, IColors
49
#include(vs/editor/common/modes/supports/tokenization): ITokenThemeRule
50
#include(vs/editor/common/services/webWorker): MonacoWebWorker, IWebWorkerOptions
51
#include(vs/editor/standalone/browser/standaloneCodeEditor): IActionDescriptor, IStandaloneEditorConstructionOptions, IDiffEditorConstructionOptions, IStandaloneCodeEditor, IStandaloneDiffEditor
A
Alex Dima 已提交
52
export interface ICommandHandler {
A
Alex Dima 已提交
53
	(...args: any[]): void;
A
Alex Dima 已提交
54
}
A
Alex Dima 已提交
55
#include(vs/platform/contextkey/common/contextkey): IContextKey
56
#include(vs/editor/standalone/browser/standaloneServices): IEditorOverrideServices
57
#include(vs/platform/markers/common/markers): IMarker, IMarkerData, IRelatedInformation
58
#include(vs/editor/standalone/browser/colorizer): IColorizerOptions, IColorizerElementOptions
59
#include(vs/base/common/scrollable): ScrollbarVisibility
60
#include(vs/platform/theme/common/themeService): ThemeColor
A
Alex Dima 已提交
61
#includeAll(vs/editor/common/model;LanguageIdentifier=>languages.LanguageIdentifier): IScrollEvent
62
#includeAll(vs/editor/common/editorCommon;editorOptions.=>): IScrollEvent
63
#includeAll(vs/editor/common/model/textModelEvents):
64
#includeAll(vs/editor/common/controller/cursorEvents):
65 66
#includeAll(vs/editor/common/config/editorOptions):
#includeAll(vs/editor/browser/editorBrowser;editorCommon.=>;editorOptions.=>):
67
#include(vs/editor/common/config/fontInfo): FontInfo, BareFontInfo
68 69

//compatibility:
A
Alex Dima 已提交
70 71
export type IReadOnlyModel = ITextModel;
export type IModel = ITextModel;
72 73
}

A
Alex Dima 已提交
74
declare namespace monaco.languages {
75

76
#includeAll(vs/editor/standalone/browser/standaloneLanguages;modes.=>;editorCommon.=>editor.;model.=>editor.;IMarkerData=>editor.IMarkerData):
77
#includeAll(vs/editor/common/modes/languageConfiguration):
78
#includeAll(vs/editor/common/modes;editorCommon.IRange=>IRange;editorCommon.IPosition=>IPosition;editorCommon.=>editor.;IMarkerData=>editor.IMarkerData;model.=>editor.):
79
#include(vs/editor/common/services/modeService): ILanguageExtensionPoint
80
#includeAll(vs/editor/standalone/common/monarch/monarchTypes):
81 82 83

}

A
Alex Dima 已提交
84
declare namespace monaco.worker {
85

86
#includeAll(vs/editor/common/services/editorSimpleWorker;):
87

88
}
89

90
//dtsv=2