MCPcopy Create free account
hub / github.com/DTStack/molecule / toggleWholeWord

Method toggleWholeWord

src/services/workbench/searchService.ts:158–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 }
157
158 public toggleWholeWord() {
159 const { isWholeWords } = this.state;
160 const { SEARCH_WHOLE_WORD_COMMAND_ID } =
161 this.builtinService.getConstants();
162 if (SEARCH_WHOLE_WORD_COMMAND_ID) {
163 this.setState({
164 isWholeWords: !isWholeWords,
165 });
166 this.updateStatus(SEARCH_WHOLE_WORD_COMMAND_ID, !isWholeWords);
167 }
168 }
169
170 public toggleRegex() {
171 const { isRegex } = this.state;

Callers 2

SearchControllerClass · 0.80

Calls 3

updateStatusMethod · 0.95
setStateMethod · 0.80
getConstantsMethod · 0.65

Tested by

no test coverage detected