Skip to content

Commit 025c265

Browse files
committed
Fix install command for macOS and broken link on for Linux install message
1 parent 35bee87 commit 025c265

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
> **Note**: odd version numbers, for example, `0.13.0`, are not included in this changelog. They are used to test the new features and fixes before the final release.
99
10-
## [0.18.0] - 2025-02-27
10+
## [0.18.1] - 2025-02-27
1111

1212
### Added:
1313

@@ -29,6 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929

3030
- Diagnostics: Fixed GraphMockResponsePlugin does not require a config section issue
3131
- Diagnostics: Fixed languageModel property being reported as invalid config section
32+
- Install: Fixed broken link for Linux
33+
- Install: Updated brew tap command to reference new tap location
3234

3335
## [0.16.0] - 2025-02-03
3436

src/commands.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ import * as vscode from 'vscode';
22
import { pluginDocs } from './constants';
33
import { VersionPreference } from './enums';
44
import { executeCommand, isConfigFile } from './helpers';
5-
import { config } from 'process';
65

76
export const registerCommands = (context: vscode.ExtensionContext, configuration: vscode.WorkspaceConfiguration) => {
87
context.subscriptions.push(
98
vscode.commands.registerCommand('dev-proxy-toolkit.install', async (platform: NodeJS.Platform) => {
109
const versionPreference = configuration.get('version') as VersionPreference;
11-
const id = versionPreference === VersionPreference.Stable ? 'Microsoft.DevProxy' : 'Microsoft.DevProxy.Beta';
1210
const message = vscode.window.setStatusBarMessage('Installing Dev Proxy...');
13-
11+
1412
// we are on windows so we can use winget
1513
if (platform === 'win32') {
14+
const id = versionPreference === VersionPreference.Stable ? 'Microsoft.DevProxy' : 'Microsoft.DevProxy.Beta';
1615
// we first need to check if winget is installed, it is bundled with windows 11 but not windows 10
1716
try {
1817
await executeCommand('winget --version');
@@ -35,8 +34,9 @@ export const registerCommands = (context: vscode.ExtensionContext, configuration
3534

3635
// we are on macos so we can use brew
3736
if (platform === 'darwin') {
37+
const id = versionPreference === VersionPreference.Stable ? 'devproxy' : 'devproxy-beta';
3838
try {
39-
await executeCommand('brew tap microsoft/dev-proxy');
39+
await executeCommand('brew tap dotnet/dev-proxy');
4040
await executeCommand(`brew install ${id}`);
4141
const result = await vscode.window.showInformationMessage('Dev Proxy installed.', 'Reload');
4242
if (result === 'Reload') {
@@ -49,7 +49,7 @@ export const registerCommands = (context: vscode.ExtensionContext, configuration
4949

5050
if (platform === 'linux') {
5151
// we are on linux so we point the user to the documentation to install manually
52-
const url = 'https://aka.ms/devproxy/start';
52+
const url = 'https://aka.ms/devproxy/start/linux';
5353
vscode.env.openExternal(vscode.Uri.parse(url));
5454
}
5555

0 commit comments

Comments
 (0)