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

Method projectInfo

src/plugins/smartut/common/itemnode.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33dpfservice::ProjectInfo Node::projectInfo() const
34{
35 auto prjSrv = dpfGetService(ProjectService);
36 Q_ASSERT(prjSrv);
37
38 const auto &allInfos = prjSrv->getAllProjectInfo();
39 auto iter = std::find_if(allInfos.cbegin(), allInfos.cend(),
40 [this](const ProjectInfo &info) {
41 return nodeFilePath.startsWith(info.workspaceFolder());
42 });
43
44 return iter == allInfos.cend() ? ProjectInfo() : *iter;
45}
46
47QString Node::filePath() const
48{

Callers

nothing calls this directly

Calls 5

ProjectInfoFunction · 0.85
getAllProjectInfoMethod · 0.80
cbeginMethod · 0.80
cendMethod · 0.80
startsWithMethod · 0.80

Tested by

no test coverage detected