mirror of
https://github.com/convergencelabs/monaco-collab-ext.git
synced 2024-10-27 20:34:17 +00:00
Fixes #3.
This commit is contained in:
parent
705b55b117
commit
be5d65c147
@ -12,14 +12,14 @@ import {EditorContentManager} from "./EditorContentManager";
|
|||||||
import {OnDisposed} from "./OnDisposed";
|
import {OnDisposed} from "./OnDisposed";
|
||||||
import {Validation} from "./Validation";
|
import {Validation} from "./Validation";
|
||||||
|
|
||||||
interface Configuration {
|
interface IConfiguration {
|
||||||
readonly lineHeight: number;
|
readonly lineHeight: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getConfiguration(editorInstance: editor.ICodeEditor): Configuration {
|
function getConfiguration(editorInstance: editor.ICodeEditor): IConfiguration {
|
||||||
// Support for Monaco < 0.19.0
|
// Support for Monaco < 0.19.0
|
||||||
if (typeof (editorInstance as any).getConfiguration === 'function') {
|
if (typeof (editorInstance as any).getConfiguration === "function") {
|
||||||
return (editorInstance as any).getConfiguration()
|
return (editorInstance as any).getConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user