Fix regex and whole word terminal toggles

Fixes #186375
This commit is contained in:
Daniel Imms
2023-06-29 12:50:22 -07:00
parent 6314fae1a3
commit ebc70d445f
@@ -121,7 +121,7 @@ registerActiveInstanceAction({
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),
run: (activeInstance) => {
const state = TerminalFindContribution.get(activeInstance)?.findWidget.state;
state?.change({ matchCase: !state.isRegex }, false);
state?.change({ isRegex: !state.isRegex }, false);
}
});
@@ -137,7 +137,7 @@ registerActiveInstanceAction({
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),
run: (activeInstance) => {
const state = TerminalFindContribution.get(activeInstance)?.findWidget.state;
state?.change({ matchCase: !state.wholeWord }, false);
state?.change({ wholeWord: !state.wholeWord }, false);
}
});