Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jpogran committed Oct 25, 2024
1 parent fb80e50 commit 68a0042
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/api/terraform/terraform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export async function initAskUserCommand(client: LanguageClient, reporter: Telem

// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
await execWorkspaceLSCommand<void>(command, moduleUri.toString(), client, reporter);
return;
} catch (error) {
if (error instanceof Error) {
vscode.window.showErrorMessage(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/features/terraformCloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class TerraformCloudFeature implements vscode.Disposable {
showCollapseAll: true,
treeDataProvider: workspaceDataProvider,
});
const organization: string = this.context.workspaceState.get('terraform.cloud.organization', '');
const organization = this.context.workspaceState.get<string>('terraform.cloud.organization', '');
workspaceView.title = organization !== '' ? `Workspaces - (${organization})` : 'Workspaces';

this.context.subscriptions.push(
Expand Down Expand Up @@ -153,7 +153,7 @@ export class TerraformCloudFeature implements vscode.Disposable {
this.context.subscriptions.push(
vscode.commands.registerCommand('terraform.cloud.workspaces.picker', async () => {
this.reporter.sendTelemetryEvent('tfc-new-workspace');
const organization: string = this.context.workspaceState.get('terraform.cloud.organization', '');
const organization = this.context.workspaceState.get<string>('terraform.cloud.organization', '');
if (organization === '') {
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/providers/tfc/runProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class RunTreeDataProvider implements vscode.TreeDataProvider<TFCRunTreeIt
}

private async getRuns(workspace: WorkspaceTreeItem): Promise<vscode.TreeItem[]> {
const organization: string = this.ctx.workspaceState.get('terraform.cloud.organization', '');
const organization = this.ctx.workspaceState.get<string>('terraform.cloud.organization', '');
if (organization === '') {
return [];
}
Expand Down

0 comments on commit 68a0042

Please sign in to comment.