pass mark properties in to create decoration (#160840)

fix #160839
This commit is contained in:
Megan Rogge 2022-09-14 11:05:29 -07:00 committed by GitHub
parent 51ab74bc88
commit 41aacfa3fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ export class DecorationAddon extends Disposable implements ITerminalAddon {
}
switch (capability.type) {
case TerminalCapability.BufferMarkDetection:
disposables = [capability.onMarkAdded(mark => this.registerMarkDecoration({ hoverMessage: mark.hoverMessage }))];
disposables = [capability.onMarkAdded(mark => this.registerMarkDecoration(mark))];
break;
case TerminalCapability.CommandDetection:
disposables = this._getCommandDetectionListeners(capability);