mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-29 09:09:03 +01:00
adding some console logs, need to figure out why the hide widgets does not exactly behave as expected
This commit is contained in:
@@ -215,7 +215,7 @@ export class ContentHoverController extends Disposable {
|
||||
}
|
||||
|
||||
public hide(): void {
|
||||
console.log('Inside of hide of controller');
|
||||
console.log('Inside of hide of hover controller');
|
||||
this._computer.anchor = null;
|
||||
this._hoverOperation.cancel();
|
||||
this._setCurrentResult(null);
|
||||
@@ -793,7 +793,7 @@ export class ContentHoverWidget extends ResizableContentWidget {
|
||||
}
|
||||
|
||||
public hide(): void {
|
||||
console.log('Inside of hide');
|
||||
console.log('Inside of hide of content hover widget');
|
||||
if (!this._visibleData) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ export class ModesHoverController implements IEditorContribution {
|
||||
}
|
||||
|
||||
if (target.type === MouseTargetType.GUTTER_GLYPH_MARGIN && target.position) {
|
||||
console.log('Before this._contentWidget?.hide() in _onEditorMouseMove');
|
||||
console.log('Before this._contentWidget.hide() in _onEditorMouseMove');
|
||||
this._contentWidget?.hide();
|
||||
if (!this._glyphWidget) {
|
||||
this._glyphWidget = new MarginHoverWidget(this._editor, this._languageService, this._openerService);
|
||||
@@ -224,15 +224,15 @@ export class ModesHoverController implements IEditorContribution {
|
||||
if (_sticky) {
|
||||
return;
|
||||
}
|
||||
console.log('Before very last _hideWidgets inside of _onEditorMouseMove');
|
||||
let mouseMoveEvent: IEditorMouseEvent | undefined;
|
||||
const mouseMoveDisposable = this._editor.onMouseMove((e) => {
|
||||
mouseMoveEvent = e;
|
||||
});
|
||||
setTimeout(() => {
|
||||
// Find appropriate conditions
|
||||
// TODO: Find appropriate conditions
|
||||
console.log('mouseMoveEvent : ', mouseMoveEvent);
|
||||
if (target.type === MouseTargetType.CONTENT_WIDGET && target.detail === ContentHoverWidget.ID) {
|
||||
console.log('Before very last _hideWidgets() inside of _onEditorMouseMove');
|
||||
this._hideWidgets();
|
||||
}
|
||||
mouseMoveDisposable.dispose();
|
||||
@@ -256,7 +256,6 @@ export class ModesHoverController implements IEditorContribution {
|
||||
}
|
||||
|
||||
private _hideWidgets(): void {
|
||||
console.log('Inside of _hideWidgets at ', new Date());
|
||||
if (_sticky) {
|
||||
return;
|
||||
}
|
||||
@@ -266,7 +265,6 @@ export class ModesHoverController implements IEditorContribution {
|
||||
this._hoverActivatedByColorDecoratorClick = false;
|
||||
this._hoverClicked = false;
|
||||
this._glyphWidget?.hide();
|
||||
console.log('Before this._contentWidget?.hide() in _hideWidgets');
|
||||
this._contentWidget?.hide();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user