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

Method toggleCaseSensitive

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

Source from the content-addressed store, hash-verified

141 }
142
143 public toggleCaseSensitive() {
144 const { isCaseSensitive } = this.state;
145 const { SEARCH_CASE_SENSITIVE_COMMAND_ID } =
146 this.builtinService.getConstants();
147 if (SEARCH_CASE_SENSITIVE_COMMAND_ID) {
148 this.setState({
149 isCaseSensitive: !isCaseSensitive,
150 });
151 this.updateStatus(
152 SEARCH_CASE_SENSITIVE_COMMAND_ID,
153 !isCaseSensitive
154 );
155 }
156 }
157
158 public toggleWholeWord() {
159 const { isWholeWords } = this.state;

Callers 2

SearchControllerClass · 0.80

Calls 3

updateStatusMethod · 0.95
setStateMethod · 0.80
getConstantsMethod · 0.65

Tested by

no test coverage detected