2016-05-20 15:45:31 +00:00
|
|
|
declare module monaco {
|
|
|
|
|
2016-10-20 16:30:03 +00:00
|
|
|
interface Thenable<T> {
|
2016-05-21 07:07:42 +00:00
|
|
|
/**
|
|
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
|
|
*/
|
2016-10-20 16:30:03 +00:00
|
|
|
then<TResult>(onfulfilled?: (value: T) => TResult | Thenable<TResult>, onrejected?: (reason: any) => TResult | Thenable<TResult>): Thenable<TResult>;
|
|
|
|
then<TResult>(onfulfilled?: (value: T) => TResult | Thenable<TResult>, onrejected?: (reason: any) => void): Thenable<TResult>;
|
2016-05-21 07:07:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IDisposable {
|
|
|
|
dispose(): void;
|
|
|
|
}
|
2016-05-20 15:45:31 +00:00
|
|
|
|
2016-05-25 21:56:13 +00:00
|
|
|
export interface IEvent<T> {
|
|
|
|
(listener: (e: T) => any, thisArg?: any): IDisposable;
|
|
|
|
}
|
2016-05-20 15:45:31 +00:00
|
|
|
|
2016-06-11 11:54:13 +00:00
|
|
|
/**
|
|
|
|
* A helper that allows to emit and listen to typed events
|
|
|
|
*/
|
2016-05-25 21:56:13 +00:00
|
|
|
export class Emitter<T> {
|
|
|
|
constructor();
|
2016-10-22 21:10:20 +00:00
|
|
|
readonly event: Event<T>;
|
2016-05-25 21:56:13 +00:00
|
|
|
fire(event?: T): void;
|
|
|
|
dispose(): void;
|
|
|
|
}
|
2016-05-21 06:45:12 +00:00
|
|
|
|
2016-05-25 21:56:13 +00:00
|
|
|
export enum Severity {
|
|
|
|
Ignore = 0,
|
|
|
|
Info = 1,
|
|
|
|
Warning = 2,
|
|
|
|
Error = 3,
|
|
|
|
}
|
2016-05-21 06:45:12 +00:00
|
|
|
|
2016-05-25 21:56:13 +00:00
|
|
|
#include(vs/base/common/winjs.base.d.ts): TValueCallback, ProgressCallback, TPromise
|
|
|
|
#include(vs/base/common/cancellation): CancellationTokenSource, CancellationToken
|
|
|
|
#include(vs/base/common/uri): URI
|
2016-09-12 20:32:52 +00:00
|
|
|
#include(vs/editor/common/standalone/standaloneBase): KeyCode, KeyMod
|
2016-06-24 08:19:12 +00:00
|
|
|
#include(vs/base/common/htmlContent): MarkedString
|
2016-05-25 11:19:54 +00:00
|
|
|
#include(vs/base/browser/keyboardEvent): IKeyboardEvent
|
|
|
|
#include(vs/base/browser/mouseEvent): IMouseEvent
|
2017-04-18 15:14:40 +00:00
|
|
|
#include(vs/editor/common/editorCommon): IScrollEvent
|
2017-04-18 13:51:30 +00:00
|
|
|
#include(vs/editor/common/core/position): IPosition, Position
|
2017-04-18 14:33:22 +00:00
|
|
|
#include(vs/editor/common/core/range): IRange, Range
|
2017-04-18 15:14:40 +00:00
|
|
|
#include(vs/editor/common/core/selection): ISelection, Selection, SelectionDirection
|
2017-01-03 14:44:42 +00:00
|
|
|
#include(vs/editor/common/core/token): Token
|
2016-05-20 15:45:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module monaco.editor {
|
2016-06-01 08:33:35 +00:00
|
|
|
|
2017-01-03 14:44:42 +00:00
|
|
|
#includeAll(vs/editor/browser/standalone/standaloneEditor;modes.=>languages.;editorCommon.=>):
|
2017-03-21 10:10:01 +00:00
|
|
|
#include(vs/editor/common/services/standaloneThemeService): BuiltinTheme, IStandaloneThemeData, IColors
|
2017-03-21 09:29:14 +00:00
|
|
|
#include(vs/editor/common/modes/supports/tokenization): ITokenThemeRule
|
2016-09-07 12:53:15 +00:00
|
|
|
#include(vs/editor/common/services/webWorker): MonacoWebWorker, IWebWorkerOptions
|
2016-06-16 14:34:19 +00:00
|
|
|
#include(vs/editor/browser/standalone/standaloneCodeEditor): IEditorConstructionOptions, IDiffEditorConstructionOptions, IStandaloneCodeEditor, IStandaloneDiffEditor
|
|
|
|
export interface ICommandHandler {
|
|
|
|
(...args:any[]): void;
|
|
|
|
}
|
2016-08-12 15:09:49 +00:00
|
|
|
#include(vs/platform/contextkey/common/contextkey): IContextKey
|
2016-06-01 08:33:35 +00:00
|
|
|
#include(vs/editor/browser/standalone/standaloneServices): IEditorOverrideServices
|
|
|
|
#include(vs/platform/markers/common/markers): IMarkerData
|
2016-06-06 14:44:28 +00:00
|
|
|
#include(vs/editor/browser/standalone/colorizer): IColorizerOptions, IColorizerElementOptions
|
2016-07-08 06:31:28 +00:00
|
|
|
#include(vs/base/common/scrollable): ScrollbarVisibility
|
2017-04-18 14:33:22 +00:00
|
|
|
#includeAll(vs/editor/common/editorCommon;IMode=>languages.IMode;LanguageIdentifier=>languages.LanguageIdentifier;editorOptions.=>): ISelection, IScrollEvent
|
2017-04-18 12:46:15 +00:00
|
|
|
#includeAll(vs/editor/common/model/textModelEvents):
|
2017-04-18 13:29:34 +00:00
|
|
|
#includeAll(vs/editor/common/config/editorOptions):
|
|
|
|
#includeAll(vs/editor/browser/editorBrowser;editorCommon.=>;editorOptions.=>):
|
2017-01-09 16:56:06 +00:00
|
|
|
#include(vs/editor/common/config/fontInfo): FontInfo, BareFontInfo
|
2016-06-01 08:33:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module monaco.languages {
|
|
|
|
|
2016-06-22 07:31:23 +00:00
|
|
|
#includeAll(vs/editor/browser/standalone/standaloneLanguages;modes.=>;editorCommon.=>editor.;IMarkerData=>editor.IMarkerData):
|
2016-11-01 12:18:19 +00:00
|
|
|
#includeAll(vs/editor/common/modes/languageConfiguration):
|
2017-01-06 11:34:04 +00:00
|
|
|
#includeAll(vs/editor/common/modes;editorCommon.IRange=>IRange;editorCommon.IPosition=>IPosition;editorCommon.=>editor.):
|
2016-06-01 08:33:35 +00:00
|
|
|
#include(vs/editor/common/services/modeService): ILanguageExtensionPoint
|
2016-06-06 14:44:28 +00:00
|
|
|
#includeAll(vs/editor/common/modes/monarch/monarchTypes):
|
2016-06-01 08:33:35 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module monaco.worker {
|
|
|
|
|
2016-06-16 10:08:43 +00:00
|
|
|
#includeAll(vs/editor/common/services/editorSimpleWorker;):
|
2016-06-01 08:33:35 +00:00
|
|
|
|
2016-05-20 15:45:31 +00:00
|
|
|
}
|