Skip to content

Commit e740f65

Browse files
Bumped Language Server Version (#2193)
* Bumped language server version to 0.39.0-beta3 * [COMPLIANCE] Add required copyright headers Signed-off-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> * update changelog * Update changelog * update test for policies * Update test --------- Signed-off-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
1 parent ab4f7aa commit e740f65

10 files changed

Lines changed: 21 additions & 11 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: ENHANCEMENTS
2+
body: Bumped Language Server Version to 0.39.0-beta3 (Support enforcement_level, info_message and variables inside policy files).
3+
time: 2026-02-23T17:31:31.190686+05:30
4+
custom:
5+
Issue: "2193"
6+
Repository: vscode-terraform

.changie.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) HashiCorp, Inc.
1+
# Copyright IBM Corp. 2016, 2026
22
# SPDX-License-Identifier: MPL-2.0
33

44
changesDir: .changes

.github/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) HashiCorp, Inc.
1+
# Copyright IBM Corp. 2016, 2026
22
# SPDX-License-Identifier: MPL-2.0
33

44
changelog:

.vscode-test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) HashiCorp, Inc.
2+
* Copyright IBM Corp. 2016, 2026
33
* SPDX-License-Identifier: MPL-2.0
44
*/
55

.vscode-uitest.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) HashiCorp, Inc.
2+
* Copyright IBM Corp. 2016, 2026
33
* SPDX-License-Identifier: MPL-2.0
44
*/
55

build/downloader.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) HashiCorp, Inc.
2+
* Copyright IBM Corp. 2016, 2026
33
* SPDX-License-Identifier: MPL-2.0
44
*/
55

build/preview.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (c) HashiCorp, Inc.
2+
# Copyright IBM Corp. 2016, 2026
33
# SPDX-License-Identifier: MPL-2.0
44

55
set -eEuo pipefail

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"vscode": "^1.92.2"
1919
},
2020
"langServer": {
21-
"version": "0.39.0-beta2"
21+
"version": "0.39.0-beta3"
2222
},
2323
"syntax": {
2424
"version": "0.7.1"

src/test/e2e/.mocharc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) HashiCorp, Inc.
2+
* Copyright IBM Corp. 2016, 2026
33
* SPDX-License-Identifier: MPL-2.0
44
*/
55

src/test/integration/policy/policy.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ suite('policy (.policy.hcl)', function () {
3030
const expected = [
3131
new vscode.CompletionItem('locals', vscode.CompletionItemKind.Class),
3232
new vscode.CompletionItem('module_policy', vscode.CompletionItemKind.Class),
33-
new vscode.CompletionItem('policy', vscode.CompletionItemKind.Class),
3433
new vscode.CompletionItem('provider_policy', vscode.CompletionItemKind.Class),
3534
new vscode.CompletionItem('resource_policy', vscode.CompletionItemKind.Class),
35+
new vscode.CompletionItem('variable', vscode.CompletionItemKind.Class),
3636
];
3737
await testCompletion(docUri, new vscode.Position(0, 0), { items: expected });
3838
});
3939
});
4040

41-
suite('resource_policy', function () {
41+
suite('policy', function () {
4242
const docUri = getDocUri('main.policy.hcl');
4343

4444
this.beforeAll(async () => {
@@ -53,7 +53,7 @@ suite('policy (.policy.hcl)', function () {
5353
await vscode.commands.executeCommand('workbench.action.files.revert');
5454
});
5555

56-
test('completes attrs of resource policy block', async () => {
56+
test('completes attrs of policy block', async () => {
5757
const expected = [
5858
new vscode.CompletionItem('enforcement_level', vscode.CompletionItemKind.Property),
5959
new vscode.CompletionItem('plugins', vscode.CompletionItemKind.Class),
@@ -81,7 +81,9 @@ suite('policy (.policy.hcl)', function () {
8181
test('completes attrs of module policy block', async () => {
8282
const expected = [
8383
new vscode.CompletionItem('enforce', vscode.CompletionItemKind.Class),
84+
new vscode.CompletionItem('enforcement_level', vscode.CompletionItemKind.Property),
8485
new vscode.CompletionItem('filter', vscode.CompletionItemKind.Property),
86+
new vscode.CompletionItem('locals', vscode.CompletionItemKind.Class),
8587
];
8688
await testCompletion(docUri, new vscode.Position(23, 0), { items: expected });
8789
});
@@ -105,7 +107,9 @@ suite('policy (.policy.hcl)', function () {
105107
test('completes attrs of provider policy block', async () => {
106108
const expected = [
107109
new vscode.CompletionItem('enforce', vscode.CompletionItemKind.Class),
110+
new vscode.CompletionItem('enforcement_level', vscode.CompletionItemKind.Property),
108111
new vscode.CompletionItem('filter', vscode.CompletionItemKind.Property),
112+
new vscode.CompletionItem('locals', vscode.CompletionItemKind.Class),
109113
];
110114
await testCompletion(docUri, new vscode.Position(30, 0), { items: expected });
111115
});

0 commit comments

Comments
 (0)