private void OnWorkspaceOpening(object sender, PythonWorkspaceContextEventArgs e) { var workspace = e.Workspace; _untrustedWorkspaceInfoBar = new UntrustedWorkspaceInfoBar(_serviceProvider, workspace); workspace.IsTrustedQueried += TriggerUntrustedWorkspaceInfoBar; }
private void ResetSuppressDialog(object sender, EventArgs e) { PyService.SuppressDialogOptions.Reset(); PyService.SuppressDialogOptions.Save(); UntrustedWorkspaceInfoBar.ClearTrustedWorkspaces(PyService); }