Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/test/multiRoot/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,15 @@ suite("Multi root workspace tests", () => {
);
});

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

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