testing: support for test tags in search

This also involves creating a suggest enabled input with history, which
I modelled off the previous plain text input with history.
This commit is contained in:
Connor Peet
2021-08-12 17:08:43 -07:00
parent 699084fdb4
commit 03504d625a
17 changed files with 545 additions and 251 deletions

View File

@@ -32,6 +32,7 @@ export interface ITestItemSetProp {
op: ExtHostTestItemEventOp.SetProp;
key: keyof vscode.TestItem;
value: any;
previous: any;
}
export interface ITestItemBulkReplace {
op: ExtHostTestItemEventOp.Bulk;
@@ -81,8 +82,14 @@ const testItemPropAccessor = <K extends keyof vscode.TestItem>(
},
set(newValue: vscode.TestItem[K]) {
if (!equals(value, newValue)) {
const oldValue = value;
value = newValue;
api.listener?.({ op: ExtHostTestItemEventOp.SetProp, key, value: newValue });
api.listener?.({
op: ExtHostTestItemEventOp.SetProp,
key,
value: newValue,
previous: oldValue,
});
}
},
};