Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
overviewRuler: {
position: OverviewRulerLane.Full,
color: 'rgba(125, 125, 125, 0.3)',
}
},
{
type: Type.IncomingMarker,
backgroundColor: 'rgba(0, 0, 255, 0.1)',
isWholeLine: true,
},
{
type: Type.IncomingContent,
backgroundColor: 'rgba(0, 0, 255, 0.3)',
isWholeLine: true,
overviewRuler: {
position: OverviewRulerLane.Full,
color: 'rgba(0, 0, 255, 0.3)',
}
}
];
}
get(): DecorationType[] {
return [
{
type: Type.CurrentMarker,
backgroundColor: 'rgba(0, 255, 0, 0.1)',
isWholeLine: true,
},
{
type: Type.CurrentContent,
backgroundColor: 'rgba(0, 255, 0, 0.3)',
isWholeLine: true,
overviewRuler: {
position: OverviewRulerLane.Full,
color: 'rgba(0, 255, 0, 0.3)',
}
},
{
type: Type.BaseMarker,
backgroundColor: 'rgba(125, 125, 125, 0.1)',
isWholeLine: true,
},
{
type: Type.BaseContent,
backgroundColor: 'rgba(125, 125, 125, 0.3)',
isWholeLine: true,
overviewRuler: {
position: OverviewRulerLane.Full,
color: 'rgba(125, 125, 125, 0.3)',
}
resultNode.children.map(res => {
decorations.push({
range: {
start: {
line: res.line - 1,
character: res.character - 1
},
end: {
line: res.line - 1,
character: res.character - 1 + res.length
}
},
options: {
overviewRuler: {
color: 'rgba(230, 0, 0, 1)',
position: OverviewRulerLane.Full
},
className: res.selected ? 'current-search-in-workspace-editor-match' : 'search-in-workspace-editor-match',
stickiness: TrackedRangeStickiness.GrowsOnlyWhenTypingBefore
}
});
});
}