config/rule: don't populate ID field for automatically id-managed workspaces
This commit is contained in:
parent
40831a90a0
commit
431325ff0c
6 changed files with 19 additions and 12 deletions
|
|
@ -115,6 +115,10 @@ bool isDirection(const char& arg) {
|
|||
return arg == 'l' || arg == 'r' || arg == 'u' || arg == 'd' || arg == 't' || arg == 'b';
|
||||
}
|
||||
|
||||
static bool isAutoIDdWorkspace(WORKSPACEID id) {
|
||||
return id < WORKSPACE_INVALID;
|
||||
}
|
||||
|
||||
SWorkspaceIDName getWorkspaceIDNameFromString(const std::string& in) {
|
||||
SWorkspaceIDName result = {WORKSPACE_INVALID, ""};
|
||||
|
||||
|
|
@ -456,6 +460,8 @@ SWorkspaceIDName getWorkspaceIDNameFromString(const std::string& in) {
|
|||
}
|
||||
}
|
||||
|
||||
result.isAutoIDd = isAutoIDdWorkspace(result.id);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ struct SCallstackFrameInfo {
|
|||
struct SWorkspaceIDName {
|
||||
WORKSPACEID id = WORKSPACE_INVALID;
|
||||
std::string name;
|
||||
bool isAutoIDd = false;
|
||||
};
|
||||
|
||||
std::string absolutePath(const std::string&, const std::string&);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue