Skip to content

Commit 331cef1

Browse files
committed
Merge branch 'SCALRCORE-32692' of github.com:penja/scalr-vscode into SCALRCORE-32692
2 parents a80c41f + 036e42f commit 331cef1

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1212

1313
- HTTP proxy support ([#38](https://github.com/Scalr/scalr-vscode/issues/38))
1414
- Scalr Workspaces & Runs Commands ([#36]https://github.com/Scalr/scalr-vscode/issues/36))
15-
- Added User-Agent scalr-vscode/version header for API tracking
1615

1716
## [0.0.5]
1817

README.md

+31-5
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,44 @@ Please Note: This extension is currently in its early stages of development. Whi
1313
## Features
1414

1515
| Feature | Description |
16-
| -------------------- | ------------------------------------------------------------------------------------------------------------ |
16+
|----------------------|--------------------------------------------------------------------------------------------------------------|
1717
| Workspace Management | View a comprehensive list of available workspaces for logged-in users. |
1818
| Run Overview | Access a list of all runs, with the ability to filter runs specific to a workspace. |
1919
| Run triggering | Preview, Apply, or Destroy infrastructure in the selected workspace and review changes right in the VS Code. |
2020
| Detailed Information | Get quick access to general information about any workspace or run. |
2121
| Plan/Apply Output | Read the output from Terraform plan and apply operations directly within VS Code. |
2222
| Scalr UI Integration | Convenient links provide quick navigation to the corresponding sections of the Scalr web UI. |
2323

24-
## HTTP PROXY
24+
### Configuring an HTTP Proxy
2525

26-
If the [proxy server](https://code.visualstudio.com/docs/setup/network#_proxy-server-support) is don't used. The proxy for https://scalr.io/ could be configured on vscode by http.proxy and http.proxyAuthorization variables (Settings > User > Applications > Poxy)
27-
or by HTTP_PROXY, HTTPS_PROXY environment variables.
26+
If your environment requires using an HTTP proxy to connect to external services, you can configure the VS Code extension to use a proxy by following these steps:
27+
28+
1. **Open Settings**:
29+
- Go to the **Settings** tab in VS Code.
30+
- Alternatively, you can open the command palette (`Ctrl+Shift+P` or `Cmd+Shift+P` on macOS) and search for `Preferences: Open Settings (UI)`.
31+
32+
2. **Search for Proxy Settings**:
33+
- In the Settings search bar, type `proxy`.
34+
35+
3. **Configure Proxy**:
36+
- **HTTP Proxy**: Enter your HTTP proxy URL under `Proxy > HTTP: Proxy`.
37+
- **HTTPS Proxy**: If your proxy also handles HTTPS traffic, enter it under `Proxy > HTTPS: Proxy`.
38+
- **Proxy Strict SSL**: Toggle `Proxy > Strict SSL` if your proxy uses a self-signed certificate.
39+
40+
4. **Configure the Extension**:
41+
- If the extension needs to use the proxy for specific API calls, ensure it respects the global proxy settings in VS Code. You can also configure proxy settings directly in the extension by setting the following in your `settings.json`:
42+
43+
```json
44+
{
45+
"http.proxy": "http://<proxy-url>:<port>",
46+
"http.proxyStrictSSL": false
47+
}
48+
```
49+
50+
5. **Restart VS Code**:
51+
After configuring your proxy, restart VS Code to ensure the settings are applied.
52+
53+
For more advanced proxy configurations, refer to the official [VS Code documentation](https://code.visualstudio.com/docs/setup/network#_proxy-server-support).
2854

2955
## Installation
3056

@@ -66,7 +92,7 @@ If you want to install dependencies and build the extension locally, follow thes
6692
## Usage
6793

6894
| Command | How to? |
69-
| ----------------- | ---------------------------------------------------------------------------------------- |
95+
|-------------------|------------------------------------------------------------------------------------------|
7096
| Login | After installing, you can log in to your Scalr account through the extension. |
7197
| View Workspaces | Click on the Scalr icon in the sidebar to view your available workspaces. |
7298
| Run Management | Select a workspace to see all associated runs or access the list of all runs. |

src/api/error.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function getErrorMessage(error: unknown): string {
1313
if (axiosError.code === 'ECONNABORTED') {
1414
return 'Connection timeout please check your internet connection or proxy settings.';
1515
} else if (axiosError.status === 407) {
16-
return 'Proxy authentication required. Please check your proxy settings.';
16+
return 'Proxy authentication required. Please update your proxy settings.';
1717
} else if (axiosError.status === 401) {
1818
vscode.commands.executeCommand('setContext', 'scalr.signed-in', false);
1919
}

0 commit comments

Comments
 (0)