set fallback
This commit is contained in:
@@ -65,6 +65,9 @@ class Decoration extends Disposable implements IInternalDecoration {
|
|||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
this.marker = options.marker;
|
this.marker = options.marker;
|
||||||
|
if (this.options.overviewRulerOptions && !this.options.overviewRulerOptions.position) {
|
||||||
|
this.options.overviewRulerOptions.position = 'full';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public override dispose(): void {
|
public override dispose(): void {
|
||||||
this._onDispose.fire();
|
this._onDispose.fire();
|
||||||
|
|||||||
Vendored
+1
-1
@@ -479,7 +479,7 @@ declare module 'xterm' {
|
|||||||
* @param color The color of the decoration.
|
* @param color The color of the decoration.
|
||||||
* @param position The position of the decoration.
|
* @param position The position of the decoration.
|
||||||
*/
|
*/
|
||||||
readonly overviewRulerOptions?: { color: string; position: 'left' | 'center' | 'right' | 'full'}
|
readonly overviewRulerOptions?: { color: string; position?: 'left' | 'center' | 'right' | 'full'}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user