Skip to content

Commit

Permalink
Finish adapting to new infrastructure.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Poeschl committed Apr 7, 2017
1 parent 810bc1d commit 678fb05
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ public void DialogSendKeys(string dialogAutomationName, string keys)
=> _editorInProc.DialogSendKeys(dialogAutomationName, keys);

public void FormatDocument() {
VisualStudioInstance.VisualStudioWorkspace.WaitForAsyncOperations(FeatureAttribute.Workspace);
VisualStudioInstance.Workspace.WaitForAsyncOperations(FeatureAttribute.Workspace);
SendKeys(new KeyPress(VirtualKey.K, ShiftState.Ctrl), new KeyPress(VirtualKey.D, ShiftState.Ctrl));
}

public void FormatSelection() {
VisualStudioInstance.VisualStudioWorkspace.WaitForAsyncOperations(FeatureAttribute.Workspace);
VisualStudioInstance.Workspace.WaitForAsyncOperations(FeatureAttribute.Workspace);
SendKeys(new KeyPress(VirtualKey.K, ShiftState.Ctrl), new KeyPress(VirtualKey.F, ShiftState.Ctrl));
}

Expand Down

0 comments on commit 678fb05

Please sign in to comment.