From 9acbf5d8ae716cf3b36a92902b21864fd0ba55d1 Mon Sep 17 00:00:00 2001 From: James Pogran Date: Wed, 7 Aug 2024 13:39:35 -0400 Subject: [PATCH 1/3] Bump terraform-ls from 0.34.2 to 0.35.0-alpha1 --- .changes/unreleased/ENHANCEMENTS-20240716-094842.yaml | 6 ++++++ .changes/unreleased/ENHANCEMENTS-20240717-114614.yaml | 6 ++++++ .changes/unreleased/ENHANCEMENTS-20240724-122601.yaml | 6 ++++++ .changes/unreleased/ENHANCEMENTS-20240725-163756.yaml | 6 ++++++ .changes/unreleased/ENHANCEMENTS-20240731-152949.yaml | 6 ++++++ .changes/unreleased/ENHANCEMENTS-20240731-155657.yaml | 6 ++++++ .changes/unreleased/ENHANCEMENTS-20240805-140526.yaml | 6 ++++++ .changes/unreleased/INTERNAL-20240717-115636.yaml | 6 ++++++ package.json | 2 +- 9 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/ENHANCEMENTS-20240716-094842.yaml create mode 100644 .changes/unreleased/ENHANCEMENTS-20240717-114614.yaml create mode 100644 .changes/unreleased/ENHANCEMENTS-20240724-122601.yaml create mode 100644 .changes/unreleased/ENHANCEMENTS-20240725-163756.yaml create mode 100644 .changes/unreleased/ENHANCEMENTS-20240731-152949.yaml create mode 100644 .changes/unreleased/ENHANCEMENTS-20240731-155657.yaml create mode 100644 .changes/unreleased/ENHANCEMENTS-20240805-140526.yaml create mode 100644 .changes/unreleased/INTERNAL-20240717-115636.yaml diff --git a/.changes/unreleased/ENHANCEMENTS-20240716-094842.yaml b/.changes/unreleased/ENHANCEMENTS-20240716-094842.yaml new file mode 100644 index 000000000..98a34e1b6 --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20240716-094842.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Parse and load Stack and Deploy metadata +time: 2024-07-16T09:48:42.389816-04:00 +custom: + Issue: "1761" + Repository: terraform-ls diff --git a/.changes/unreleased/ENHANCEMENTS-20240717-114614.yaml b/.changes/unreleased/ENHANCEMENTS-20240717-114614.yaml new file mode 100644 index 000000000..f1ba39d89 --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20240717-114614.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Load Stack component sources from metadata +time: 2024-07-17T11:46:14.048412-04:00 +custom: + Issue: "1768" + Repository: terraform-ls diff --git a/.changes/unreleased/ENHANCEMENTS-20240724-122601.yaml b/.changes/unreleased/ENHANCEMENTS-20240724-122601.yaml new file mode 100644 index 000000000..ba1f1b7aa --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20240724-122601.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Enable early validation for Terraform Stack files +time: 2024-07-24T12:26:01.677192-04:00 +custom: + Issue: "1776" + Repository: terraform-ls diff --git a/.changes/unreleased/ENHANCEMENTS-20240725-163756.yaml b/.changes/unreleased/ENHANCEMENTS-20240725-163756.yaml new file mode 100644 index 000000000..1c5ed5d00 --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20240725-163756.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Merge stack configuration schema with dynamic schema based on used components source and providers +time: 2024-07-25T16:37:56.096322+02:00 +custom: + Issue: "1770" + Repository: terraform-ls diff --git a/.changes/unreleased/ENHANCEMENTS-20240731-152949.yaml b/.changes/unreleased/ENHANCEMENTS-20240731-152949.yaml new file mode 100644 index 000000000..a6171da66 --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20240731-152949.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Merge deployment configuration schema with dynamic schema based on available variables +time: 2024-07-31T15:29:49.214334+02:00 +custom: + Issue: "1780" + Repository: terraform-ls diff --git a/.changes/unreleased/ENHANCEMENTS-20240731-155657.yaml b/.changes/unreleased/ENHANCEMENTS-20240731-155657.yaml new file mode 100644 index 000000000..943ea9766 --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20240731-155657.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Support Terraform functions in stack files +time: 2024-07-31T15:56:57.234803+02:00 +custom: + Issue: "1781" + Repository: terraform-ls diff --git a/.changes/unreleased/ENHANCEMENTS-20240805-140526.yaml b/.changes/unreleased/ENHANCEMENTS-20240805-140526.yaml new file mode 100644 index 000000000..2d2b05eba --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20240805-140526.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Add DecodeReferenceOrigins and DecodeReferenceTargets jobs +time: 2024-08-05T14:05:26.030294-04:00 +custom: + Issue: "1786" + Repository: terraform-ls diff --git a/.changes/unreleased/INTERNAL-20240717-115636.yaml b/.changes/unreleased/INTERNAL-20240717-115636.yaml new file mode 100644 index 000000000..003b5679b --- /dev/null +++ b/.changes/unreleased/INTERNAL-20240717-115636.yaml @@ -0,0 +1,6 @@ +kind: INTERNAL +body: Load embedded provider schemas for providers found in stacks files into state +time: 2024-07-17T11:56:36.184201+02:00 +custom: + Issue: "1763" + Repository: terraform-ls diff --git a/package.json b/package.json index bfd3f7dbe..9d9463d13 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "vscode": "^1.86.2" }, "langServer": { - "version": "0.34.2" + "version": "0.35.0-alpha1" }, "syntax": { "version": "0.5.0" From ea31988ae1f83e16224d3dd3bd6d30591104e401 Mon Sep 17 00:00:00 2001 From: Ansgar Mertens Date: Thu, 8 Aug 2024 09:55:57 +0200 Subject: [PATCH 2/3] fix: fix tests for ls update --- src/test/integration/stacks/deployment.test.ts | 2 +- src/test/integration/stacks/stack.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/integration/stacks/deployment.test.ts b/src/test/integration/stacks/deployment.test.ts index a7993cf9b..1e0df98d0 100644 --- a/src/test/integration/stacks/deployment.test.ts +++ b/src/test/integration/stacks/deployment.test.ts @@ -88,7 +88,7 @@ deployment "test" { test('completes audience in identity_token block', async () => { // add a new incomplete "account_3" identity_token block to use for completions await vscode.window.activeTextEditor?.edit((editBuilder) => { - editBuilder.insert(new vscode.Position(14, 0), 'identity_token {\n\n}\n'); + editBuilder.insert(new vscode.Position(14, 0), 'identity_token "test" {\n\n}\n'); }); const expected = [new vscode.CompletionItem('audience', vscode.CompletionItemKind.Property)]; diff --git a/src/test/integration/stacks/stack.test.ts b/src/test/integration/stacks/stack.test.ts index 1276f814b..8a0f06697 100644 --- a/src/test/integration/stacks/stack.test.ts +++ b/src/test/integration/stacks/stack.test.ts @@ -145,7 +145,7 @@ suite('stacks stack', () => { test('completes config and for_each blocks within provider', async () => { const expected = [ - new vscode.CompletionItem('config', vscode.CompletionItemKind.Property), + new vscode.CompletionItem('config', vscode.CompletionItemKind.Class), new vscode.CompletionItem('for_each', vscode.CompletionItemKind.Property), ]; From 8cc36df41b83d60d4adf84934653b89d2c09a310 Mon Sep 17 00:00:00 2001 From: Ansgar Mertens Date: Thu, 8 Aug 2024 12:02:18 +0200 Subject: [PATCH 3/3] Bump terraform-ls from 0.34.2 to 0.35.0-alpha2 --- .changes/unreleased/BUG FIXES-20240808-105000.yaml | 6 ++++++ .changes/unreleased/INTERNAL-20240807-132909.yaml | 6 ++++++ package.json | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/BUG FIXES-20240808-105000.yaml create mode 100644 .changes/unreleased/INTERNAL-20240807-132909.yaml diff --git a/.changes/unreleased/BUG FIXES-20240808-105000.yaml b/.changes/unreleased/BUG FIXES-20240808-105000.yaml new file mode 100644 index 000000000..61147490f --- /dev/null +++ b/.changes/unreleased/BUG FIXES-20240808-105000.yaml @@ -0,0 +1,6 @@ +kind: BUG FIXES +body: fix panic on blocks with no labels during validation of label name +time: 2024-08-08T10:50:00.988265+02:00 +custom: + Issue: "1791" + Repository: terraform-ls diff --git a/.changes/unreleased/INTERNAL-20240807-132909.yaml b/.changes/unreleased/INTERNAL-20240807-132909.yaml new file mode 100644 index 000000000..839a38b4c --- /dev/null +++ b/.changes/unreleased/INTERNAL-20240807-132909.yaml @@ -0,0 +1,6 @@ +kind: INTERNAL +body: Bump terraform-schema to c2315af +time: 2024-08-07T13:29:09.149354-04:00 +custom: + Issue: "1788" + Repository: terraform-ls diff --git a/package.json b/package.json index 9d9463d13..f31937578 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "vscode": "^1.86.2" }, "langServer": { - "version": "0.35.0-alpha1" + "version": "0.35.0-alpha2" }, "syntax": { "version": "0.5.0"