public void Invoke() { #if DEV14_OR_LATER _action.Invoke(CancellationToken.None); #else _action.Invoke(); #endif }
public async Task InvokeCodeActionAsync(ISuggestedAction codeAction, CancellationToken cancellationToken) { var view = await GetActiveTextViewAsync(cancellationToken); codeAction.Invoke(cancellationToken); // ISuggestedAction.Invoke does not dismiss the session, so we must do it manually var broker = await GetComponentModelServiceAsync <ILightBulbBroker>(cancellationToken); broker.DismissSession(view); }
public void Invoke() { _action.Invoke(CancellationToken.None); }