mirror of https://github.com/buggins/dlangide.git
on updating source file on debuging check if file exists before opening in editor
This commit is contained in:
parent
730039249e
commit
1b881f2341
|
@ -82,7 +82,12 @@ class DebuggerUIHandler : DebuggerCallback, StackFrameSelectedHandler {
|
||||||
if (sourceFile) {
|
if (sourceFile) {
|
||||||
_ide.openSourceFile(sourceFile.filename, sourceFile, true);
|
_ide.openSourceFile(sourceFile.filename, sourceFile, true);
|
||||||
} else {
|
} else {
|
||||||
_ide.openSourceFile(location.fullFilePath, null, true);
|
import std.file;
|
||||||
|
if (exists(location.fullFilePath)) {
|
||||||
|
_ide.openSourceFile(location.fullFilePath, null, true);
|
||||||
|
} else {
|
||||||
|
Log.d("can not update location sourcefile does not exists:" ~ location.fullFilePath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DSourceEdit[] editors = _ide.allOpenedEditors;
|
DSourceEdit[] editors = _ide.allOpenedEditors;
|
||||||
|
|
Loading…
Reference in New Issue