MCPcopy Create free account
hub / github.com/SpartanJ/eepp / asyncFuzzyMatch

Method asyncFuzzyMatch

src/tools/ecode/commandpalette.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void CommandPalette::asyncFuzzyMatch( const std::string& pattern, const size_t& max,
99 MatchResultCb res ) const {
100 if ( !mCurModel )
101 return;
102
103 mPool->run( [this, pattern, max, res]() {
104 const std::vector<std::vector<std::string>>& cmdPalette =
105 mCurModel.get() == mBaseModel.get() ? mCommandPalette : mCommandPaletteEditor;
106 res( fuzzyMatch( cmdPalette, pattern, max ) );
107 } );
108}
109
110} // namespace ecode

Callers 1

Calls 2

runMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected