Skip to content

Commit 2765759

Browse files
authored
test: enable non workspace file check (#467)
1 parent 61de4ec commit 2765759

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/test/multiRoot/extension.test.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,15 @@ suite("Multi root workspace tests", () => {
100100
);
101101
});
102102

103-
// TODO throw or return null
104-
// test("requests from non workspace file: docs go to first workspace client", async () => {
105-
// const fileUri = vscode.Uri.file(path.join(fixturesPath, "elixir_file.ex"));
106-
// assert.equal(
107-
// languageClientManager.getClientByUri(fileUri),
108-
// languageClientManager.clients.get(vscode.workspace.workspaceFolders![0].uri.toString())
109-
// );
110-
// });
103+
test("requests from non workspace file: docs go to first workspace client", async () => {
104+
const fileUri = vscode.Uri.file(path.join(fixturesPath, "elixir_file.ex"));
105+
assert.equal(
106+
extension.exports.languageClientManager.getClientByUri(fileUri),
107+
extension.exports.languageClientManager.clients.get(
108+
vscode.workspace.workspaceFolders?.[0].uri.toString() ?? "",
109+
),
110+
);
111+
});
111112

112113
test("extension starts second client on file open from different outermost folder", async () => {
113114
const fileUri = vscode.Uri.file(

0 commit comments

Comments
 (0)