11<!-- -
2- lsp/ext.rs hash: 4b06686d086b7d9b
2+ lsp/ext.rs hash: 6bc140531b403717
33
44If you need to change the above hash to make the test pass, please check if you
55need to adjust this doc as well and ping this issue:
@@ -416,7 +416,9 @@ interface TestItem {
416416 range? : lc .Range | undefined ;
417417 // A human readable name for this test
418418 label: string ;
419- icon: " package" | " module" | " test" ;
419+ // The kind of this test item. Based on the kind,
420+ // an icon is chosen by the editor.
421+ kind: " package" | " module" | " test" ;
420422 // True if this test may have children not available eagerly
421423 canResolveChildren: boolean ;
422424 // The id of the parent test in the test tree. If not present, this test
@@ -425,6 +427,10 @@ interface TestItem {
425427 // The information useful for running the test. The client can use `runTest`
426428 // request for simple execution, but for more complex execution forms
427429 // like debugging, this field is useful.
430+ // Note that this field includes some information about label and location as well, but
431+ // those exist just for keeping things in sync with other methods of running runnables
432+ // (for example using one consistent name in the vscode's launch.json) so for any propose
433+ // other than running tests this field should not be used.
428434 runnable? : Runnable | undefined ;
429435};
430436
@@ -451,8 +457,14 @@ the same as the one in `experimental/discoverTest` response.
451457** Request:** ` RunTestParams `
452458
453459``` typescript
454- interface DiscoverTestParams {
460+ interface RunTestParams {
461+ // Id of the tests to be run. If a test is included, all of its children are included implicitly. If
462+ // this property is undefined, then the server should simply run all tests.
455463 include? : string [] | undefined ;
464+ // An array of test ids the user has marked as excluded from the test included in this run; exclusions
465+ // should apply after inclusions.
466+ // May be omitted if no exclusions were requested. Server should not run excluded tests or
467+ // any children of excluded tests.
456468 exclude? : string [] | undefined ;
457469}
458470```
@@ -480,9 +492,16 @@ a `experimental/endRunTest` when is done.
480492** Notification:** ` ChangeTestStateParams `
481493
482494``` typescript
483- type TestState = { tag: " failed" ; message: string }
484- | { tag: " passed" }
485- | { tag: " started" };
495+ type TestState = { tag: " passed" }
496+ | {
497+ tag: " failed" ;
498+ // The standard error of the test, containing the panic message. Clients should
499+ // render it similar to a terminal, and e.g. handle ansi colors.
500+ message: string ;
501+ }
502+ | { tag: " started" }
503+ | { tag: " enqueued" }
504+ | { tag: " skipped" };
486505
487506interface ChangeTestStateParams {
488507 testId: string ;
0 commit comments