Skip to content

Repo sync for protected branch #10498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docker/tutorials/tutorial-multi-container-app-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ In this example, you create the network and attach the MySQL container at startu
--network todo-app --network-alias mysql
-v todo-mysql-data:/var/lib/mysql
-e MYSQL_ROOT_PASSWORD=<your-password>
-e MYSQL_DATABASE=todos
-e MYSQL_DB=todos
mysql:5.7
```

This command also defines the `MYSQL_ROOT_PASSWORD` and `MYSQL_DATABASE` environment variables. For more information, see [MySQL Docker Hub listing](https://hub.docker.com/_/mysql/).
This command also defines the `MYSQL_ROOT_PASSWORD` and `MYSQL_DB` environment variables. For more information, see [MySQL Docker Hub listing](https://hub.docker.com/_/mysql/).

> [!WARNING]
> This tutorial illustrates password credentials to authenticate with a MySQL database, which is not the most secure method. Refer to the [MySQL documentation](https://dev.mysql.com/doc/) to learn about more secure methods of authentication.
Expand Down Expand Up @@ -146,7 +146,7 @@ The `todo` app supports setting certain environment variables to specify your My
| `MYSQL_HOST` | `mysql` | The host name for the MySQL server. |
| `MYSQL_USER` | `root` | The username to use for the connection. |
| `MYSQL_PASSWORD` | `<your-password>` | The password to use for the connection. In this example, substitute your root password for the `<your-password>` placeholder. |
| `MYSQL_DATABASE` | `todos` | The name of the database to use after the connection is established. |
| `MYSQL_DB` | `todos` | The name of the database to use after the connection is established. |

> [!WARNING]
> Using environment variables to set connection settings is acceptable for development, but this practice isn't recommended for running applications in production. For more information, see [Why you shouldn't use environment variables for secret data](https://diogomonica.com/2017/03/27/why-you-shouldnt-use-env-variables-for-secret-data/).
Expand All @@ -166,7 +166,7 @@ In the following example, you start your app and connect your app container to y
-e MYSQL_HOST=mysql
-e MYSQL_USER=root
-e MYSQL_PASSWORD=<your-password>
-e MYSQL_DATABASE=todos
-e MYSQL_DB=todos
node:20-alpine
sh -c "yarn install && yarn run dev"
```
Expand Down Expand Up @@ -255,7 +255,7 @@ In the following example, you configure a Docker Compose file for your multi-con
-e MYSQL_HOST=mysql
-e MYSQL_USER=root
-e MYSQL_PASSWORD=<your-password>
-e MYSQL_DATABASE=todos
-e MYSQL_DB=todos
node:20-alpine
sh -c "yarn install && yarn run dev"
```
Expand Down Expand Up @@ -320,7 +320,7 @@ In the following example, you configure a Docker Compose file for your multi-con
MYSQL_HOST: mysql
MYSQL_USER: root
MYSQL_PASSWORD: <your-password>
MYSQL_DATABASE: todos
MYSQL_DB: todos
```

Remember to enter your MySQL root password for the `<your-password>` placeholder.
Expand Down Expand Up @@ -361,7 +361,7 @@ In the following example, you configure a Docker Compose file for your multi-con
- todo-mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: <your-password>
MYSQL_DATABASE: todos
MYSQL_DB: todos
```

Remember to enter your MySQL root password for the `<your-password>` placeholder.
Expand Down Expand Up @@ -394,15 +394,15 @@ In the following example, you configure a Docker Compose file for your multi-con
MYSQL_HOST: mysql
MYSQL_USER: root
MYSQL_PASSWORD: <your-password>
MYSQL_DATABASE: todos
MYSQL_DB: todos

mysql:
image: mysql:5.7
volumes:
- todo-mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: <your-password>
MYSQL_DATABASE: todos
MYSQL_DB: todos

volumes:
todo-mysql-data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ To avoid misplaced edits, edits from editor extensions are applied as follows:

## Changing caret position or selecting text from an extension

Editing text document from an extension implicitly affects caret position. For example, inserting some text at the caret will move the caret to the end of the inserted text. Extensions can also use [`ITextViewSnapshot.AsEditable().SetSelections()`](/dotnet/api/microsoft.visualstudio.text.itextvieweditor.setselections) to set the caret explicitly to a different position or make text selections. To illustrate, the following code would insert some text, but keep the caret at the original position:
Editing text document from an extension implicitly affects caret position. For example, inserting some text at the caret will move the caret to the end of the inserted text. Extensions can also use [`ITextViewSnapshot.AsEditable().SetSelections()`](/dotnet/api/microsoft.visualstudio.extensibility.editor.itextvieweditor.setselections) to set the caret explicitly to a different position or make text selections. To illustrate, the following code would insert some text, but keep the caret at the original position:

```csharp
await this.Extensibility.Editor().EditAsync(batch =>
Expand Down Expand Up @@ -264,7 +264,7 @@ Text view margins are placed into a margin container (see [ContainerMarginPlacem

Text view margin providers implement [ITextViewMarginProvider](/dotnet/api/microsoft.visualstudio.extensibility.editor.itextviewmarginprovider) interface, configure the margin they provide by implementing [TextViewMarginProviderConfiguration](/dotnet/api/microsoft.visualstudio.extensibility.editor.itextviewmarginprovider.textviewmarginproviderconfiguration) and when activated, provide UI control to be hosted in the margin via [CreateVisualElementAsync](/dotnet/api/microsoft.visualstudio.extensibility.editor.itextviewmarginprovider.createvisualelementasync).

Because extensions in VisualStudio.Extensibility might be out-of-process from the Visual Studio, we can't directly use WPF as a presentation layer for content of text view margins. Instead, providing a content to a text view margin requires creating a [RemoteUserControl](./../inside-the-sdk/remote-ui.md) and the corresponding data template for that control. While there are some simple examples below, we recommend reading the [Remote UI documentation](./../inside-the-sdk/remote-ui.md) when creating text view margin UI content.
Because extensions in VisualStudio.Extensibility might be out-of-process from the Visual Studio, we can't directly use WPF as a presentation layer for content of text view margins. Instead, providing a content to a text view margin requires creating a [RemoteUserControl](./../inside-the-sdk/remote-ui.md#create-the-remote-user-control) and the corresponding data template for that control. While there are some simple examples below, we recommend reading the [Remote UI documentation](./../inside-the-sdk/remote-ui.md) when creating text view margin UI content.

```csharp
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The Output window in the Visual Studio IDE is a [Tool Window](./../tool-window/t
> [!IMPORTANT]
> The VisualStudio.Extensibility Output window APIs are currently in preview and are subject to change. Any extension that leverages these APIs may fail to work in future versions of Visual Studio and will need to be updated when a newer version of the APIs is released.

To get started, follow the [create the project](./../get-started/create-your-first-extension.md) section in Getting Started section.
To get started, follow the [create the project](./../get-started/create-your-first-extension.md#create-the-extension-project) section in Getting Started section.

## Work with the Output window

Expand Down
2 changes: 1 addition & 1 deletion subscriptions/assign-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ You can review the impacted subscribers and specify whether you would like to no
Selecting the **Move subscribers** button allows you to move all recommended subscribers or choose individuals from a list. After you confirm your selections, it takes a few seconds for the subscription moves to complete. If applicable, perform these steps for Professional and Enterprise separately.

> [!NOTE]
> If you need to update a single subscriber currently assigned through a Microsoft Entra group, see our article about [Editing Visual Studio subscription assignments](https://learn.microsoft.com/visualstudio/subscriptions/edit-license]).
> If you need to update a single subscriber currently assigned through a Microsoft Entra group, see our article about [Editing Visual Studio subscription assignments](/visualstudio/subscriptions/edit-license).

## Invite subscribers to your organization

Expand Down