Making the settings readonly (#200221)

making the settings readonly
This commit is contained in:
Aiday Marlen Kyzy
2023-12-11 16:34:20 +01:00
committed by GitHub
parent 66fda5f088
commit 3fca41e19b
+4 -6
View File
@@ -39,9 +39,9 @@ const _sticky = false
;
interface IHoverSettings {
enabled: boolean;
sticky: boolean;
hidingDelay: number;
readonly enabled: boolean;
readonly sticky: boolean;
readonly hidingDelay: number;
}
interface IHoverState {
@@ -279,9 +279,7 @@ export class HoverController extends Disposable implements IEditorContribution {
(decoratorActivatedOn === 'click' && !activatedByDecoratorClick) ||
(decoratorActivatedOn === 'hover' && !enabled && !_sticky) ||
(decoratorActivatedOn === 'clickAndHover' && !enabled && !activatedByDecoratorClick))
)
||
(
) || (
!mouseOnDecorator && !enabled && !activatedByDecoratorClick
)
) {