Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion dotnet/src/Generated/Rpc.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions nodejs/test/e2e/rpc_server.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,26 @@ describe("Server-scoped RPC", async () => {
}
});

it("should call rpc commands list with well-known session-start commands", async () => {
await client.start();
const result = await client.rpc.commands.list();
expect(result.commands).toBeDefined();
expect(result.commands.length).toBeGreaterThan(0);

const names = result.commands.map((command) => command.name);
// Well-known commands that work as the first message in a new session.
expect(names).toContain("plan");
expect(names).toContain("env");
// Commands that require an active session must not be listed.
expect(names).not.toContain("compact");
expect(names).not.toContain("usage");

for (const command of result.commands) {
expect(command.name).toBeTruthy();
expect(command.kind).toBe("builtin");
}
});

it("should call rpc sessionFs setProvider with typed result", async () => {
const fsClient = createClientWithEnv({});
await fsClient.start();
Expand Down
Loading