MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / get

Method get

src/plugins/codeeditor/lsp/lspclientmanager.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26newlsp::Client *LSPClientManager::get(const newlsp::ProjectKey &key)
27{
28 if (!key.isValid())
29 return nullptr;
30
31 if (clientHash.contains(key)) {
32 qApp->metaObject()->invokeMethod(clientHash[key], "selectLspServer", Q_ARG(const newlsp::ProjectKey &, key));
33 } else {
34 auto client = new newlsp::Client();
35 qApp->metaObject()->invokeMethod(client, "selectLspServer", Q_ARG(const newlsp::ProjectKey &, key));
36 qApp->metaObject()->invokeMethod(client, "initRequest");
37 clientHash.insert(key, client);
38 }
39
40 return clientHash[key];
41}
42
43QColor LSPClientManager::highlightColor(const QString &langId, lsp::SemanticTokenType::type_value token)
44{

Callers 15

RunnerMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
continueDbgMethod · 0.45
sendMethod · 0.45
getModelMethod · 0.45
initializeMethod · 0.45
setVariableMethod · 0.45
setExpressionMethod · 0.45
gotoTargetsMethod · 0.45
goto_Method · 0.45
stepInTargetsMethod · 0.45

Calls 3

insertMethod · 0.80
isValidMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected