Skip to content

Commit 5d49d32

Browse files
committed
Fix after CR
1 parent 6ed2058 commit 5d49d32

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Please Note: This extension is currently in its early stages of development. Whi
2323

2424
## 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/ coudl be configured on vscode by http.proxy and http.proxyAuthorization variables (Settings > User > Applications > Poxy)
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)
2727
or by HTTP_PROXY, HTTPS_PROXY environment variables.
2828

2929
## Installation

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,22 @@
6666
},
6767
{
6868
"command": "workspace.open",
69-
"title": "Scalr: View workspace",
69+
"title": "Scalr: View Workspace",
7070
"icon": "$(globe)"
7171
},
7272
{
7373
"command": "run.open",
74-
"title": "Scalr: View runs",
74+
"title": "Scalr: View Runs",
7575
"icon": "$(globe)"
7676
},
7777
{
7878
"command": "apply.open",
79-
"title": "Scalr: Show apply output",
79+
"title": "Scalr: Show Apply Output",
8080
"icon": "$(output)"
8181
},
8282
{
8383
"command": "plan.open",
84-
"title": "Scalr: Show plan output",
84+
"title": "Scalr: Show Plan Output",
8585
"icon": "$(output)"
8686
},
8787
{

src/api/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function getErrorMessage(error: unknown): string {
1111
if (anxios.isAxiosError(error)) {
1212
const axiosError = error as AxiosError;
1313
if (axiosError.code === 'ECONNABORTED') {
14-
return 'Connection timeout ple check your internet connection or proxy settings.';
14+
return 'Connection timeout plese check your internet connection or proxy settings.';
1515
} else if (axiosError.status === 407) {
1616
return 'Proxy authentication required. Please check your proxy settings.';
1717
} else if (axiosError.status === 401) {

src/providers/logProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ export class LogProvider implements vscode.TextDocumentContentProvider, vscode.D
9696
return `Failed to fetch log: ${error}`;
9797
}
9898

99-
if (data) {
100-
return data as string;
99+
if (data && typeof data === 'string') {
100+
return data;
101101
}
102102

103103
// Wait before retrying
104-
const retryDelay = 100 * (attempt + 1);
104+
const retryDelay = 500 * (attempt + 1);
105105
await new Promise((resolve) => setTimeout(resolve, retryDelay));
106106
}
107107

src/providers/workspaceProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getRunStatusIcon, RunTreeDataProvider } from './runProvider';
66
import { Pagination } from '../@types/api';
77
import { formatDate } from '../date-utils';
88
import { showErrorMessage } from '../api/error';
9-
import { exec } from 'child_process';
109

1110
class QuickPickItem implements vscode.QuickPickItem {
1211
constructor(

0 commit comments

Comments
 (0)