mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Added legacy bookmark support
This commit is contained in:
parent
ebcaffbae9
commit
f2c7c6947e
1 changed files with 17 additions and 0 deletions
|
@ -3382,6 +3382,23 @@ namespace IDE
|
||||||
mBookmarkManager.CreateBookmark(absPath, lineNum, column, isDisabled, bookmarkTitle, folder);
|
mBookmarkManager.CreateBookmark(absPath, lineNum, column, isDisabled, bookmarkTitle, folder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Legacy loading
|
||||||
|
for (var _bookmark in data.Enumerate("Bookmarks"))
|
||||||
|
{
|
||||||
|
String relPath = scope String();
|
||||||
|
data.GetString("File", relPath);
|
||||||
|
IDEUtils.FixFilePath(relPath);
|
||||||
|
String absPath = scope String();
|
||||||
|
mWorkspace.GetWorkspaceAbsPath(relPath, absPath);
|
||||||
|
int32 lineNum = data.GetInt("Line");
|
||||||
|
int32 column = data.GetInt("Column");
|
||||||
|
|
||||||
|
bool isDisabled = data.GetBool("Disabled", false);
|
||||||
|
|
||||||
|
mBookmarkManager.CreateBookmark(absPath, lineNum, column, isDisabled, null, null);
|
||||||
|
}
|
||||||
|
|
||||||
mBookmarkManager.RecalcCurId();
|
mBookmarkManager.RecalcCurId();
|
||||||
|
|
||||||
for (var referenceId in data.Enumerate("DebuggerDisplayTypes"))
|
for (var referenceId in data.Enumerate("DebuggerDisplayTypes"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue