mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Show compilation progress in test explorer
This commit is contained in:
parent
9029c51ae4
commit
eeff20d172
6 changed files with 32 additions and 5 deletions
|
@ -100,6 +100,9 @@ export const discoveredTests = new lc.NotificationType<DiscoverTestResults>(
|
|||
export const runTest = new lc.RequestType<RunTestParams, void, void>("experimental/runTest");
|
||||
export const abortRunTest = new lc.NotificationType0("experimental/abortRunTest");
|
||||
export const endRunTest = new lc.NotificationType0("experimental/endRunTest");
|
||||
export const appendOutputToRunTest = new lc.NotificationType<string>(
|
||||
"experimental/appendOutputToRunTest",
|
||||
);
|
||||
export const changeTestState = new lc.NotificationType<ChangeTestStateParams>(
|
||||
"experimental/changeTestState",
|
||||
);
|
||||
|
|
|
@ -141,6 +141,12 @@ export const prepareTestExplorer = (
|
|||
}),
|
||||
);
|
||||
|
||||
ctx.pushClientCleanup(
|
||||
client.onNotification(ra.appendOutputToRunTest, (output) => {
|
||||
currentTestRun!.appendOutput(`${output}\r\n`);
|
||||
}),
|
||||
);
|
||||
|
||||
ctx.pushClientCleanup(
|
||||
client.onNotification(ra.changeTestState, (results) => {
|
||||
const test = idToTestMap.get(results.testId)!;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue