in frontend/src/assets/js/threadDumpPresenter.js [11:41]
async function openThreadDump(path) {
var myRegexp = new RegExp("(\\d{8}-)(\\d{6})", "g");
var match = myRegexp.exec(path);
let name;
if (match && match[2]) {
name = "TD-" + match[2]
} else {
name = path
}
let id = getObjectID(name);
let cssClass = "ThreadDumpFilter"
let editorName = getObjectID("threadDump editor" + path.toLowerCase());
let ThreadDumpFodlerFiles = await window.go.main.App.GetThreadDumpsFilters(path)
if (ThreadDumpFodlerFiles.length>0) {
await showToolWindow(name, cssClass, "top", editorName, ThreadDumpFodlerFiles)
let files = $("#" + id).children()
files.bind('click', async function () {
let filename = $(this).attr("filename");
files.removeClass("active")
$(this).addClass("active")
await showEditor(editorName, window.go.main.App.GetThreadDumpFileContent(path, filename))
let editor = ace.edit(editorName);
editor.setValue(await window.go.main.App.GetThreadDumpFileContent(path, filename))
editor.renderer.scrollToLine(0)
editor.clearSelection();
})
files.first().click();
} else {
showNotification("warn","Thread Dumps folder is empty")
}
}