Skip to content

Commit 14f3179

Browse files
authored
Merge pull request microsoft#186665 from microsoft/tyriar/186375
Fix regex and whole word terminal toggles
2 parents 654c61d + ebc70d4 commit 14f3179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ registerActiveInstanceAction({
121121
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),
122122
run: (activeInstance) => {
123123
const state = TerminalFindContribution.get(activeInstance)?.findWidget.state;
124-
state?.change({ matchCase: !state.isRegex }, false);
124+
state?.change({ isRegex: !state.isRegex }, false);
125125
}
126126
});
127127

@@ -137,7 +137,7 @@ registerActiveInstanceAction({
137137
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),
138138
run: (activeInstance) => {
139139
const state = TerminalFindContribution.get(activeInstance)?.findWidget.state;
140-
state?.change({ matchCase: !state.wholeWord }, false);
140+
state?.change({ wholeWord: !state.wholeWord }, false);
141141
}
142142
});
143143

0 commit comments

Comments
 (0)