Skip to content

Commit 0caa217

Browse files
authored
Merge pull request #39 from Scalr/SCALRCORE-32692
HTTP proxy support
2 parents 37a4af6 + 331cef1 commit 0caa217

14 files changed

+1654
-2418
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [0.0.6]
10+
11+
### Features
12+
13+
- HTTP proxy support ([#38](https://github.com/Scalr/scalr-vscode/issues/38))
14+
- Scalr Workspaces & Runs Commands ([#36]https://github.com/Scalr/scalr-vscode/issues/36))
15+
916
## [0.0.5]
1017

1118
### Features
@@ -44,7 +51,8 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
4451

4552
---
4653

47-
[Unreleased]: https://github.com/Scalr/scalr-vscode/compare/v0.0.5...HEAD
54+
[Unreleased]: https://github.com/Scalr/scalr-vscode/compare/v0.0.6...HEAD
55+
[0.0.6]: https://github.com/Scalr/scalr-vscode/releases/tag/v0.0.6
4856
[0.0.5]: https://github.com/Scalr/scalr-vscode/releases/tag/v0.0.5
4957
[0.0.4]: https://github.com/Scalr/scalr-vscode/releases/tag/v0.0.4
5058
[0.0.3]: https://github.com/Scalr/scalr-vscode/releases/tag/v0.0.3

README.md

+40-10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,37 @@ Please Note: This extension is currently in its early stages of development. Whi
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+
### Configuring an HTTP Proxy
25+
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).
54+
2455
## Installation
2556

2657
### From the VS Code Marketplace
@@ -34,8 +65,8 @@ Please Note: This extension is currently in its early stages of development. Whi
3465

3566
If you want to install dependencies and build the extension locally, follow these steps:
3667

37-
3868
> ℹ️ **Prerequisites**:
69+
>
3970
> - **Node.js**: Ensure you have Node.js installed. You can download it from [nodejs.org](https://nodejs.org/).
4071
> - **npm**: Make sure you have npm (comes with Node.js).
4172
@@ -60,15 +91,14 @@ If you want to install dependencies and build the extension locally, follow thes
6091

6192
## Usage
6293

63-
| Command | How to? |
64-
|-------------------|-------------------------------------------------------------------------------------------|
65-
| Login | After installing, you can log in to your Scalr account through the extension. |
66-
| View Workspaces | Click on the Scalr icon in the sidebar to view your available workspaces. |
67-
| Run Management | Select a workspace to see all associated runs or access the list of all runs. |
68-
| Access Details | Click on a workspace or run to view detailed information, including metadata and status. |
69-
| Plan/Apply Output | Select a run to view the output from Terraform plan and apply operations. |
70-
| UI Links | Use the provided links to navigate quickly to the Scalr UI for deeper management tasks. |
71-
94+
| Command | How to? |
95+
|-------------------|------------------------------------------------------------------------------------------|
96+
| Login | After installing, you can log in to your Scalr account through the extension. |
97+
| View Workspaces | Click on the Scalr icon in the sidebar to view your available workspaces. |
98+
| Run Management | Select a workspace to see all associated runs or access the list of all runs. |
99+
| Access Details | Click on a workspace or run to view detailed information, including metadata and status. |
100+
| Plan/Apply Output | Select a run to view the output from Terraform plan and apply operations. |
101+
| UI Links | Use the provided links to navigate quickly to the Scalr UI for deeper management tasks. |
72102

73103
## Contributing
74104

openapi-ts.config.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { defineConfig } from '@hey-api/openapi-ts';
2-
3-
export default defineConfig({
4-
client: '@hey-api/client-fetch',
1+
export default {
2+
client: '@hey-api/client-axios',
53
input: 'https://scalr.io/api/iacp/v3/openapi-public.yml',
64
output: {
75
format: 'prettier',
@@ -15,4 +13,4 @@ export default defineConfig({
1513
services: {
1614
filter: '^\\w+ /(accounts|workspaces|runs|plans|applies|environments)',
1715
},
18-
});
16+
};

0 commit comments

Comments
 (0)