-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$ErrorActionPreference = 'Stop' | ||
Import-Module vm.common -Force -DisableNameChecking | ||
|
||
try { | ||
$toolName = 'VSCode' | ||
$category = 'Text Editors' | ||
$shimPath = 'Unable to locate one' | ||
|
||
$shortcutDir = Join-Path ${Env:TOOL_LIST_DIR} $category | ||
$shortcut = Join-Path $shortcutDir "$toolName.lnk" | ||
$executablePath = Join-Path ${Env:ChocolateyInstall} $shimPath -Resolve | ||
VM-Install-Shortcut -toolName $toolName -category $category -executablePath $executablePath -runAsAdmin | ||
VM-Assert-Path $shortcut | ||
} catch { | ||
VM-Write-Log-Exception $_ | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$ErrorActionPreference = 'Continue' | ||
Import-Module vm.common -Force -DisableNameChecking | ||
|
||
$toolName = 'VSCode' | ||
$category = 'Text Editors' | ||
|
||
VM-Remove-Tool-Shortcut $toolName $category |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>vscode.vm</id> | ||
<version>1.85.2</version> | ||
<authors>Microsoft</authors> | ||
<description>VSCode is a modern, open-source code editor.</description> | ||
<dependencies> | ||
<dependency id="common.vm" /> | ||
<dependency id="vscode.install" version="[1.85.2]" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |