mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
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:
@@ -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,
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user