fix problems

This commit is contained in:
meganrogge
2022-03-16 12:45:18 -04:00
parent f678f0824b
commit 1bab173e99
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ export class SearchAddon implements ITerminalAddon {
if (!marker) {
return undefined;
}
const findResultDecoration = terminal.registerDecoration({ marker });
const findResultDecoration = terminal.registerDecoration({ marker, overviewRulerOptions: { color: 'yellow' } });
findResultDecoration?.onRender((e) => {
if (!e.classList.contains('xterm-find-result-decoration') && result.term.length && e.clientWidth > 0) {
e.classList.add('xterm-find-result-decoration');
+2 -2
View File
@@ -3,10 +3,10 @@
* @license MIT
*/
import { IDecorationService, IRenderService } from 'browser/services/Services';
import { IRenderService } from 'browser/services/Services';
import { EventEmitter, IEvent } from 'common/EventEmitter';
import { Disposable } from 'common/Lifecycle';
import { IBufferService, IInstantiationService } from 'common/services/Services';
import { IBufferService, IInstantiationService, IDecorationService } from 'common/services/Services';
import { IDecorationOptions, IDecoration, IMarker } from 'xterm';
export class DecorationService extends Disposable implements IDecorationService {