-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address offline installation with prerelease option
- Loading branch information
Showing
4 changed files
with
243 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,4 +67,5 @@ websites | |
wekyb | ||
Hmmss | ||
MMdd | ||
MMdd | ||
MMdd | ||
dbaeumer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
external help file: Microsoft.VSCode.Dsc.psm1-Help.xml | ||
Module Name: Microsoft.VSCode.Dsc | ||
ms.date: 10/22/2024 | ||
ms.date: 12/06/2024 | ||
online version: | ||
schema: 2.0.0 | ||
title: VSCodeExtension | ||
|
@@ -24,11 +24,12 @@ The `VSCodeExtension` DSC Resource allows you to install, update, and remove Vis | |
| `Name` | Key | String | The name of the Visual Studio Code extension to manage. | To find extensions in VSCode, check out: <https://code.visualstudio.com/docs/editor/extension-marketplace#_find-and-install-an-extension> | | ||
| `Version` | Optional | String | The version of the Visual Studio Code extension to install. If not specified, the latest version will be installed. | For example: `1.0.0` | | ||
| `Exist` | Optional | Boolean | Indicates whether the extension should exist. The default value is `$true`. | `$true`, `$false` | | ||
| `PreRelease` | Optional | Boolean | Indicates whether to install the pre-release version of the extension. The default value is `$false`. | `$true`, `$false` | | ||
| `Insiders` | Optional | Boolean | Indicates whether to manage the extension for the Insiders version of Visual Studio Code. The default value is `$false`. | `$true`, `$false` | | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
### EXAMPLE 1 - Install Python extension | ||
|
||
```powershell | ||
# Install the latest version of the Visual Studio Code extension 'ms-python.python' | ||
|
@@ -38,7 +39,7 @@ $params = @{ | |
Invoke-DscResource -Name VSCodeExtension -Method Set -Property $params -ModuleName Microsoft.VSCode.Dsc | ||
``` | ||
|
||
### EXAMPLE 2 | ||
### EXAMPLE 2 - Install a particular version of the Python extension | ||
|
||
```powershell | ||
# Install a specific version of the Visual Studio Code extension 'ms-python.python' | ||
|
@@ -49,7 +50,7 @@ $params = @{ | |
Invoke-DscResource -Name VSCodeExtension -Method Set -Property $params -ModuleName Microsoft.VSCode.Dsc | ||
``` | ||
|
||
### EXAMPLE 3 | ||
### EXAMPLE 3 - Uninstall Python extension | ||
|
||
```powershell | ||
# Ensure the Visual Studio Code extension 'ms-python.python' is removed | ||
|
@@ -60,13 +61,23 @@ $params = @{ | |
Invoke-DscResource -Name VSCodeExtension -Method Set -Property $params -ModuleName Microsoft.VSCode.Dsc | ||
``` | ||
|
||
### EXAMPLE 4 | ||
### EXAMPLE 4 - Install Python extension in Visual Studio Code Insiders | ||
|
||
```powershell | ||
# Ensure the Visual Studio Code extension 'ms-python.python' is removed | ||
# Ensure the Visual Studio Code extension 'ms-python.python' is installed in Insiders | ||
$params = @{ | ||
Name = 'ms-python.python' | ||
Insiders = $true | ||
} | ||
Invoke-DscResource -Name VSCodeExtension -Method Set -Property $params -ModuleName Microsoft.VSCode.Dsc | ||
``` | ||
|
||
### EXAMPLE 5 - Install extension from file path | ||
|
||
```powershell | ||
# Ensure the Visual Studio Code extension 'ms-python.python' is installed in Insiders | ||
$params = @{ | ||
Name = "C:\ShardExtensions\[email protected]" | ||
} | ||
Invoke-DscResource -Name VSCodeExtension -Method Set -Property $params -ModuleName Microsoft.VSCode.Dsc | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.