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

Method registEditorService

src/plugins/python/pythonplugin.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void PythonPlugin::registEditorService()
69{
70 auto &ctx = dpfInstance.serviceContext();
71 EditorService *editorSvc = ctx.service<EditorService>(EditorService::name());
72 if (!editorSvc)
73 return;
74
75 SciLexerPython *lexerPython = new SciLexerPython;
76 editorSvc->registerSciLexerProxy(lexerPython->language(), lexerPython);
77}
78
79void PythonPlugin::registerPIPInstaller()
80{

Callers

nothing calls this directly

Calls 3

registerSciLexerProxyMethod · 0.80
nameFunction · 0.50
languageMethod · 0.45

Tested by

no test coverage detected