mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
adding the third state 'click and hover'
This commit is contained in:
parent
f3bb16afe7
commit
cab30c44fc
|
@ -199,6 +199,14 @@ export class ModesHoverController implements IEditorContribution {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (decoratorActivatedOn === 'click and hover') {
|
||||||
|
console.log('entered into the third case');
|
||||||
|
if (!this._activatedByColorDecoratorClick) {
|
||||||
|
if (!this._isHoverEnabled) {
|
||||||
|
this._hideWidgets();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Invalid value for EditorOption.colorDecoratorsActivatedOn');
|
throw new Error('Invalid value for EditorOption.colorDecoratorsActivatedOn');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue