Hide suggest widget on cell execution (#16895)

* Hide suggest widget on cell execution

* Also hide for query editor

* Fix compile issue with tests
This commit is contained in:
Chris LaFreniere
2021-09-01 16:27:08 -07:00
committed by GitHub
parent f578fc55ee
commit 502feba76d
3 changed files with 8 additions and 1 deletions

View File

@@ -559,6 +559,8 @@ export class CellModel extends Disposable implements ICellModel {
return false;
}
this._outputCounter = 0;
// Hide IntelliSense suggestions list when running cell to match SSMS behavior
this._commandService.executeCommand('hideSuggestWidget');
this._telemetryService?.createActionEvent(TelemetryKeys.TelemetryView.Notebook, TelemetryKeys.NbTelemetryAction.RunCell)
.withAdditionalProperties({ cell_language: kernel.name })
.send();