mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
0.8.2 prep
This commit is contained in:
parent
2b855d64b6
commit
12024252f9
4 changed files with 49 additions and 3 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
# Monaco Editor Change log
|
# Monaco Editor Change log
|
||||||
|
|
||||||
|
## [0.8.2]
|
||||||
|
- Fixes the following regressions:
|
||||||
|
- [issue #385](https://github.com/Microsoft/monaco-editor/issues/385): Cannot add action to the left-hand-side of the diff editor
|
||||||
|
- [issue #386](https://github.com/Microsoft/monaco-editor/issues/386): Shortcuts for actions added via editor.addAction don't show up in the Command Palette
|
||||||
|
- [issue #387](https://github.com/Microsoft/monaco-editor/issues/387): Cannot change diff editor to a custom theme based on high contrast
|
||||||
|
|
||||||
## [0.8.1]
|
## [0.8.1]
|
||||||
- CSS/JSON/HTML language supports updated:
|
- CSS/JSON/HTML language supports updated:
|
||||||
- CSS: Support for @apply
|
- CSS: Support for @apply
|
||||||
|
|
|
||||||
22
monaco.d.ts
vendored
22
monaco.d.ts
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
/*!-----------------------------------------------------------
|
/*!-----------------------------------------------------------
|
||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
* Type definitions for monaco-editor v0.8.0
|
* Type definitions for monaco-editor v0.8.2
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
*-----------------------------------------------------------*/
|
*-----------------------------------------------------------*/
|
||||||
declare module monaco {
|
declare module monaco {
|
||||||
|
|
@ -796,6 +796,7 @@ declare module monaco.editor {
|
||||||
export function createDiffEditor(domElement: HTMLElement, options?: IDiffEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneDiffEditor;
|
export function createDiffEditor(domElement: HTMLElement, options?: IDiffEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneDiffEditor;
|
||||||
|
|
||||||
export interface IDiffNavigator {
|
export interface IDiffNavigator {
|
||||||
|
revealFirst: boolean;
|
||||||
canNavigate(): boolean;
|
canNavigate(): boolean;
|
||||||
next(): void;
|
next(): void;
|
||||||
previous(): void;
|
previous(): void;
|
||||||
|
|
@ -970,6 +971,8 @@ declare module monaco.editor {
|
||||||
addCommand(keybinding: number, handler: ICommandHandler, context: string): string;
|
addCommand(keybinding: number, handler: ICommandHandler, context: string): string;
|
||||||
createContextKey<T>(key: string, defaultValue: T): IContextKey<T>;
|
createContextKey<T>(key: string, defaultValue: T): IContextKey<T>;
|
||||||
addAction(descriptor: IActionDescriptor): IDisposable;
|
addAction(descriptor: IActionDescriptor): IDisposable;
|
||||||
|
getOriginalEditor(): IStandaloneCodeEditor;
|
||||||
|
getModifiedEditor(): IStandaloneCodeEditor;
|
||||||
}
|
}
|
||||||
export interface ICommandHandler {
|
export interface ICommandHandler {
|
||||||
(...args: any[]): void;
|
(...args: any[]): void;
|
||||||
|
|
@ -2790,6 +2793,13 @@ declare module monaco.editor {
|
||||||
readonly charChanges: ICharChange[];
|
readonly charChanges: ICharChange[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Information about a line in the diff editor
|
||||||
|
*/
|
||||||
|
export interface IDiffLineInformation {
|
||||||
|
readonly equivalentLineNumber: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface INewScrollPosition {
|
export interface INewScrollPosition {
|
||||||
scrollLeft?: number;
|
scrollLeft?: number;
|
||||||
scrollTop?: number;
|
scrollTop?: number;
|
||||||
|
|
@ -3231,6 +3241,16 @@ declare module monaco.editor {
|
||||||
* Get the computed diff information.
|
* Get the computed diff information.
|
||||||
*/
|
*/
|
||||||
getLineChanges(): ILineChange[];
|
getLineChanges(): ILineChange[];
|
||||||
|
/**
|
||||||
|
* Get information based on computed diff about a line number from the original model.
|
||||||
|
* If the diff computation is not finished or the model is missing, will return null.
|
||||||
|
*/
|
||||||
|
getDiffLineInformationForOriginal(lineNumber: number): IDiffLineInformation;
|
||||||
|
/**
|
||||||
|
* Get information based on computed diff about a line number from the modified model.
|
||||||
|
* If the diff computation is not finished or the model is missing, will return null.
|
||||||
|
*/
|
||||||
|
getDiffLineInformationForModified(lineNumber: number): IDiffLineInformation;
|
||||||
/**
|
/**
|
||||||
* @see ICodeEditor.getValue
|
* @see ICodeEditor.getValue
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
"gulp-typedoc": "^2.0.0",
|
"gulp-typedoc": "^2.0.0",
|
||||||
"http-server": "^0.9.0",
|
"http-server": "^0.9.0",
|
||||||
"monaco-css": "1.3.1",
|
"monaco-css": "1.3.1",
|
||||||
"monaco-editor-core": "0.8.1",
|
"monaco-editor-core": "0.8.2",
|
||||||
"monaco-html": "1.2.1",
|
"monaco-html": "1.2.1",
|
||||||
"monaco-json": "1.2.2",
|
"monaco-json": "1.2.2",
|
||||||
"monaco-languages": "0.7.0",
|
"monaco-languages": "0.7.0",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*!-----------------------------------------------------------
|
/*!-----------------------------------------------------------
|
||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
* Type definitions for monaco-editor v0.8.0
|
* Type definitions for monaco-editor v0.8.2
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
*-----------------------------------------------------------*/
|
*-----------------------------------------------------------*/
|
||||||
declare module monaco {
|
declare module monaco {
|
||||||
|
|
@ -796,6 +796,7 @@ declare module monaco.editor {
|
||||||
export function createDiffEditor(domElement: HTMLElement, options?: IDiffEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneDiffEditor;
|
export function createDiffEditor(domElement: HTMLElement, options?: IDiffEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneDiffEditor;
|
||||||
|
|
||||||
export interface IDiffNavigator {
|
export interface IDiffNavigator {
|
||||||
|
revealFirst: boolean;
|
||||||
canNavigate(): boolean;
|
canNavigate(): boolean;
|
||||||
next(): void;
|
next(): void;
|
||||||
previous(): void;
|
previous(): void;
|
||||||
|
|
@ -970,6 +971,8 @@ declare module monaco.editor {
|
||||||
addCommand(keybinding: number, handler: ICommandHandler, context: string): string;
|
addCommand(keybinding: number, handler: ICommandHandler, context: string): string;
|
||||||
createContextKey<T>(key: string, defaultValue: T): IContextKey<T>;
|
createContextKey<T>(key: string, defaultValue: T): IContextKey<T>;
|
||||||
addAction(descriptor: IActionDescriptor): IDisposable;
|
addAction(descriptor: IActionDescriptor): IDisposable;
|
||||||
|
getOriginalEditor(): IStandaloneCodeEditor;
|
||||||
|
getModifiedEditor(): IStandaloneCodeEditor;
|
||||||
}
|
}
|
||||||
export interface ICommandHandler {
|
export interface ICommandHandler {
|
||||||
(...args: any[]): void;
|
(...args: any[]): void;
|
||||||
|
|
@ -2790,6 +2793,13 @@ declare module monaco.editor {
|
||||||
readonly charChanges: ICharChange[];
|
readonly charChanges: ICharChange[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Information about a line in the diff editor
|
||||||
|
*/
|
||||||
|
export interface IDiffLineInformation {
|
||||||
|
readonly equivalentLineNumber: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface INewScrollPosition {
|
export interface INewScrollPosition {
|
||||||
scrollLeft?: number;
|
scrollLeft?: number;
|
||||||
scrollTop?: number;
|
scrollTop?: number;
|
||||||
|
|
@ -3231,6 +3241,16 @@ declare module monaco.editor {
|
||||||
* Get the computed diff information.
|
* Get the computed diff information.
|
||||||
*/
|
*/
|
||||||
getLineChanges(): ILineChange[];
|
getLineChanges(): ILineChange[];
|
||||||
|
/**
|
||||||
|
* Get information based on computed diff about a line number from the original model.
|
||||||
|
* If the diff computation is not finished or the model is missing, will return null.
|
||||||
|
*/
|
||||||
|
getDiffLineInformationForOriginal(lineNumber: number): IDiffLineInformation;
|
||||||
|
/**
|
||||||
|
* Get information based on computed diff about a line number from the modified model.
|
||||||
|
* If the diff computation is not finished or the model is missing, will return null.
|
||||||
|
*/
|
||||||
|
getDiffLineInformationForModified(lineNumber: number): IDiffLineInformation;
|
||||||
/**
|
/**
|
||||||
* @see ICodeEditor.getValue
|
* @see ICodeEditor.getValue
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue