2016-05-20 15:45:31 +00:00
|
|
|
declare module monaco {
|
|
|
|
|
2016-05-21 07:07:42 +00:00
|
|
|
interface Thenable<R> {
|
|
|
|
/**
|
|
|
|
* 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: R) => TResult | Thenable<TResult>, onrejected?: (reason: any) => TResult | Thenable<TResult>): Thenable<TResult>;
|
|
|
|
then<TResult>(onfulfilled?: (value: R) => TResult | Thenable<TResult>, onrejected?: (reason: any) => void): Thenable<TResult>;
|
|
|
|
}
|
|
|
|
|
|
|
|
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();
|
|
|
|
event: Event<T>;
|
|
|
|
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-05-25 11:19:54 +00:00
|
|
|
#include(vs/base/common/keyCodes): KeyCode, KeyMod
|
|
|
|
#include(vs/base/common/htmlContent): IHTMLContentElementCode, IHTMLContentElement
|
|
|
|
#include(vs/base/browser/keyboardEvent): IKeyboardEvent
|
|
|
|
#include(vs/base/browser/mouseEvent): IMouseEvent
|
|
|
|
#include(vs/editor/common/editorCommon): IScrollEvent
|
2016-06-08 20:03:32 +00:00
|
|
|
#include(vs/editor/common/editorCommon): IPosition, IRange, ISelection
|
2016-05-25 11:19:54 +00:00
|
|
|
#include(vs/editor/common/core/position): Position
|
|
|
|
#include(vs/editor/common/core/range): Range
|
2016-06-08 20:03:32 +00:00
|
|
|
#include(vs/editor/common/core/selection): Selection, SelectionDirection
|
2016-05-20 15:45:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module monaco.editor {
|
2016-06-01 08:33:35 +00:00
|
|
|
|
|
|
|
#includeAll(vs/editor/browser/standalone/standaloneEditor;modes.=>languages.):
|
|
|
|
#include(vs/editor/browser/standalone/standaloneCodeEditor): IEditorConstructionOptions, IDiffEditorConstructionOptions
|
|
|
|
#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-05-25 11:19:54 +00:00
|
|
|
#include(vs/base/browser/ui/scrollbar/scrollableElementOptions): ScrollbarVisibility
|
2016-06-06 14:44:28 +00:00
|
|
|
#include(vs/base/common/actions): IAction
|
2016-05-25 21:56:13 +00:00
|
|
|
#includeAll(vs/editor/common/editorCommon;IMode=>languages.IMode): IPosition, IRange, ISelection, SelectionDirection, IScrollEvent
|
|
|
|
#includeAll(vs/editor/browser/editorBrowser;editorCommon.=>):
|
2016-06-01 08:33:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module monaco.languages {
|
|
|
|
|
|
|
|
#includeAll(vs/editor/browser/standalone/standaloneLanguages;modes.=>;editorCommon.=>editor.):
|
2016-06-11 11:54:13 +00:00
|
|
|
#include(vs/editor/common/modes/languageConfigurationRegistry): CommentRule, LanguageConfiguration
|
|
|
|
#include(vs/editor/common/modes/supports/onEnter): IndentationRule, OnEnterRule
|
2016-06-01 08:33:35 +00:00
|
|
|
#include(vs/editor/common/modes/supports/electricCharacter): IBracketElectricCharacterContribution, IDocComment
|
|
|
|
#includeAll(vs/editor/common/modes;editorCommon.IRange=>IRange;editorCommon.IPosition=>IPosition;editorCommon.=>editor.;IToken2=>IToken;ILineTokens2=>ILineTokens;IState2=>IState):
|
|
|
|
#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 {
|
|
|
|
|
|
|
|
export interface IMirrorModel {
|
|
|
|
uri: Uri;
|
|
|
|
version: number;
|
|
|
|
getText(): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export var mirrorModels: IMirrorModel[];
|
|
|
|
|
2016-05-20 15:45:31 +00:00
|
|
|
}
|