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

Method registEditorService

src/plugins/cxx/cxxplugin.cpp:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void CxxPlugin::registEditorService()
106{
107 auto &ctx = dpfInstance.serviceContext();
108 EditorService *editorSvc = ctx.service<EditorService>(EditorService::name());
109 if (!editorSvc)
110 return;
111
112 SciLexerCPP *lexerCpp = new SciLexerCPP;
113 editorSvc->registerSciLexerProxy(lexerCpp->language(), lexerCpp);
114
115 SciLexerCMake *lexerCMake = new SciLexerCMake;
116 editorSvc->registerSciLexerProxy(lexerCMake->language(), lexerCMake);
117}

Callers

nothing calls this directly

Calls 3

registerSciLexerProxyMethod · 0.80
nameFunction · 0.50
languageMethod · 0.45

Tested by

no test coverage detected