From b18f2ea5ed94c59251430df418ed01542c6fbaa3 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Mon, 21 Mar 2022 13:15:12 +0000 Subject: [PATCH] bump LS to 0.26.0 (#1002) * bump LS to 0.26.0 * test: ensure URIs are normalized before comparing --- package.json | 2 +- src/test/integration/workspaces.test.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6be50efb5..f9c337f89 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "vscode": "^1.61.0" }, "langServer": { - "version": "0.25.2" + "version": "0.26.0" }, "qna": "https://discuss.hashicorp.com/c/terraform-core/terraform-editor-integrations/46", "bugs": { diff --git a/src/test/integration/workspaces.test.ts b/src/test/integration/workspaces.test.ts index 97c07cdfb..8c163d04d 100644 --- a/src/test/integration/workspaces.test.ts +++ b/src/test/integration/workspaces.test.ts @@ -18,7 +18,12 @@ suite('moduleCallers', () => { assert.ok(response); assert.strictEqual(response.moduleCallers.length, 1); - assert.strictEqual(response.moduleCallers[0].uri, vscode.Uri.file(testFolderPath).toString(true)); + assert.strictEqual( + // ensure both URIs are normalized, which is what VSCode would do anyway + // see https://github.com/microsoft/vscode/issues/42159#issuecomment-360533151 + vscode.Uri.parse(response.moduleCallers[0].uri).toString(true), + vscode.Uri.file(testFolderPath).toString(true), + ); }); });