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

Method registerVariables

src/plugins/codeeditor/codeeditor.cpp:253–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void CodeEditor::registerVariables()
254{
255 globalMacroExpander()->registerFileVariables("CurrentDocument",
256 tr("Current document"),
257 [this] { return QFileInfo(workspaceWidget->currentFile()); });
258 globalMacroExpander()->registerVariable("CurrentDocument:Content",
259 tr("Current document content"),
260 [this] { return workspaceWidget->currentDocumentContent(); });
261}

Callers

nothing calls this directly

Calls 2

currentFileMethod · 0.45

Tested by

no test coverage detected