95 lines
4.1 KiB
Text
95 lines
4.1 KiB
Text
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
declare module monaco {
|
|
|
|
interface Thenable<T> {
|
|
/**
|
|
* 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.
|
|
*/
|
|
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>;
|
|
}
|
|
|
|
export interface IDisposable {
|
|
dispose(): void;
|
|
}
|
|
|
|
export interface IEvent<T> {
|
|
(listener: (e: T) => any, thisArg?: any): IDisposable;
|
|
}
|
|
|
|
/**
|
|
* A helper that allows to emit and listen to typed events
|
|
*/
|
|
export class Emitter<T> {
|
|
constructor();
|
|
readonly event: Event<T>;
|
|
fire(event?: T): void;
|
|
dispose(): void;
|
|
}
|
|
|
|
export enum Severity {
|
|
Ignore = 0,
|
|
Info = 1,
|
|
Warning = 2,
|
|
Error = 3,
|
|
}
|
|
|
|
#include(vs/base/common/winjs.base.d.ts): TValueCallback, ProgressCallback, TPromise
|
|
#include(vs/base/common/cancellation): CancellationTokenSource, CancellationToken
|
|
#include(vs/base/common/uri): URI
|
|
#include(vs/editor/common/standalone/standaloneBase): KeyCode, KeyMod
|
|
#include(vs/base/common/htmlContent): MarkedString
|
|
#include(vs/base/browser/keyboardEvent): IKeyboardEvent
|
|
#include(vs/base/browser/mouseEvent): IMouseEvent
|
|
#include(vs/editor/common/editorCommon): IScrollEvent
|
|
#include(vs/editor/common/core/position): IPosition, Position
|
|
#include(vs/editor/common/core/range): IRange, Range
|
|
#include(vs/editor/common/core/selection): ISelection, Selection, SelectionDirection
|
|
#include(vs/editor/common/core/token): Token
|
|
}
|
|
|
|
declare module monaco.editor {
|
|
|
|
#includeAll(vs/editor/browser/standalone/standaloneEditor;modes.=>languages.;editorCommon.=>):
|
|
#include(vs/editor/common/services/standaloneThemeService): BuiltinTheme, IStandaloneThemeData, IColors
|
|
#include(vs/editor/common/modes/supports/tokenization): ITokenThemeRule
|
|
#include(vs/editor/common/services/webWorker): MonacoWebWorker, IWebWorkerOptions
|
|
#include(vs/editor/browser/standalone/standaloneCodeEditor): IEditorConstructionOptions, IDiffEditorConstructionOptions, IStandaloneCodeEditor, IStandaloneDiffEditor
|
|
export interface ICommandHandler {
|
|
(...args:any[]): void;
|
|
}
|
|
#include(vs/platform/contextkey/common/contextkey): IContextKey
|
|
#include(vs/editor/browser/standalone/standaloneServices): IEditorOverrideServices
|
|
#include(vs/platform/markers/common/markers): IMarkerData
|
|
#include(vs/editor/browser/standalone/colorizer): IColorizerOptions, IColorizerElementOptions
|
|
#include(vs/base/common/scrollable): ScrollbarVisibility
|
|
#includeAll(vs/editor/common/editorCommon;IMode=>languages.IMode;LanguageIdentifier=>languages.LanguageIdentifier;editorOptions.=>): ISelection, IScrollEvent
|
|
#includeAll(vs/editor/common/model/textModelEvents):
|
|
#includeAll(vs/editor/common/controller/cursorEvents):
|
|
#includeAll(vs/editor/common/config/editorOptions):
|
|
#includeAll(vs/editor/browser/editorBrowser;editorCommon.=>;editorOptions.=>):
|
|
#include(vs/editor/common/config/fontInfo): FontInfo, BareFontInfo
|
|
}
|
|
|
|
declare module monaco.languages {
|
|
|
|
#includeAll(vs/editor/browser/standalone/standaloneLanguages;modes.=>;editorCommon.=>editor.;IMarkerData=>editor.IMarkerData):
|
|
#includeAll(vs/editor/common/modes/languageConfiguration):
|
|
#includeAll(vs/editor/common/modes;editorCommon.IRange=>IRange;editorCommon.IPosition=>IPosition;editorCommon.=>editor.):
|
|
#include(vs/editor/common/services/modeService): ILanguageExtensionPoint
|
|
#includeAll(vs/editor/common/modes/monarch/monarchTypes):
|
|
|
|
}
|
|
|
|
declare module monaco.worker {
|
|
|
|
#includeAll(vs/editor/common/services/editorSimpleWorker;):
|
|
|
|
}
|