adding the third state 'click and hover'

This commit is contained in:
Aiday Marlen Kyzy 2023-06-02 10:44:10 +02:00
parent f3bb16afe7
commit cab30c44fc
No known key found for this signature in database
GPG key ID: 24A8B53DBD26FF4E

View file

@ -199,6 +199,14 @@ export class ModesHoverController implements IEditorContribution {
return;
}
}
} else if (decoratorActivatedOn === 'click and hover') {
console.log('entered into the third case');
if (!this._activatedByColorDecoratorClick) {
if (!this._isHoverEnabled) {
this._hideWidgets();
return;
}
}
} else {
throw new Error('Invalid value for EditorOption.colorDecoratorsActivatedOn');
}