use interface

This commit is contained in:
meganrogge
2022-03-17 15:18:21 -04:00
parent 731432a852
commit 5a6a275a53
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -557,9 +557,9 @@ function addDecoration() {
function addOverviewRuler() {
term.options['overviewRulerWidth'] = 15;
term.registerDecoration({marker: term.addMarker(1), overviewRulerOptions: { color: '#ef2929', position: 'full' }});
term.registerDecoration({marker: term.addMarker(3), overviewRulerOptions: { color: '#8ae234', position: 'full' }});
term.registerDecoration({marker: term.addMarker(5), overviewRulerOptions: { color: '#729fcf', position: 'full' }});
term.registerDecoration({marker: term.addMarker(1), overviewRulerOptions: { color: '#ef2929' }});
term.registerDecoration({marker: term.addMarker(3), overviewRulerOptions: { color: '#8ae234' }});
term.registerDecoration({marker: term.addMarker(5), overviewRulerOptions: { color: '#729fcf' }});
term.registerDecoration({marker: term.addMarker(7), overviewRulerOptions: { color: '#ef2929', position: 'left' }});
term.registerDecoration({marker: term.addMarker(7), overviewRulerOptions: { color: '#8ae234', position: 'center' }});
term.registerDecoration({marker: term.addMarker(7), overviewRulerOptions: { color: '#729fcf', position: 'right' }});
+3 -1
View File
@@ -7,6 +7,8 @@
* to be stable and consumed by external programs.
*/
import { IModelDecorationOverviewRulerOptions } from 'vs/editor/common/model';
/// <reference lib="dom"/>
declare module 'xterm' {
@@ -479,7 +481,7 @@ declare module 'xterm' {
* @param color The color of the decoration.
* @param position The position of the decoration.
*/
readonly overviewRulerOptions?: { color: string; position?: 'left' | 'center' | 'right' | 'full'}
readonly overviewRulerOptions?: IModelDecorationOverviewRulerOptions
}
/**