You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extensibility/visualstudio.extensibility/user-prompt/user-prompts.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.technology: vs-ide-sdk
12
12
13
13
# Create Visual Studio user prompts
14
14
15
-
User prompts are a simple UI mechanism for prompting the user during the execution of a [Command](../command/command.md). Prompting the user creates a dialog box with a message, one to three buttons for the choices, and a dismiss button.
15
+
User prompts are a simple UI mechanism for prompting the user to make a selection. Prompting the user creates a dialog box with a message, one to three buttons for the choices, and a dismiss button.
16
16
17
17
> [!NOTE]
18
18
> The exact UI used to prompt users may change in future versions based on user feedback or other factors.
@@ -33,7 +33,7 @@ The choices presented to the user are mapped to return values of the type define
33
33
34
34
## Get started
35
35
36
-
User Prompts can only be created inside of a [Command](../command/command.md). To get started, [Create the extension project](../get-started/create-your-first-extension.md#create-the-extension-project) and [Add your first command](../get-started/create-your-first-extension.md#add-your-first-command).
36
+
To get started, follow the [create the project](./../get-started/create-your-first-extension.md) section in the Getting Started section.
37
37
38
38
## Work with user prompts
39
39
@@ -45,9 +45,9 @@ This guide covers the following scenarios for working with User Prompts:
45
45
46
46
## Display a user prompt
47
47
48
-
As discussed previously, user prompts can be shown inside of commands, where you have access to an `IClientContext` instance. To show a user prompt, call the `IClientContext.ShowPromptAsync<TResult>()` method inside the `ExecuteCommandAsync()` method for the command.
48
+
Creating a user prompt with the new Extensibility Model is as simple as calling the `ShowPromptAsync` method from the [ShellExtensibility](/dotnet/api/microsoft.visualstudio.extensibility.shell.shellextensibility) helpers and passing in your options.
0 commit comments