public void StacktraceListView_Open(object userData)
            {
                if (!StacktraceListView_IsExist())
                {
                    return;
                }

                var stacktraceLineInfoIndex = (int)userData;

                if (stacktraceLineInfoIndex < m_SelectedInfo.stacktraceLineInfos.Count)
                {
                    var filePath = m_SelectedInfo.stacktraceLineInfos[stacktraceLineInfoIndex].filePath;
                    var lineNum  = m_SelectedInfo.stacktraceLineInfos[stacktraceLineInfoIndex].lineNum;
                    ScriptAssetOpener.OpenAsset(filePath, lineNum);
                }
            }
Beispiel #2
0
        private static void LoadScriptAssetOpener()
        {
            if (sao == null)
            {
                sao = new ScriptAssetOpener();
            }
            if (sao.initialized || sao.alreadyInitialized)
            {
                return;
            }

            sao.Init(null);
            foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
            {
                if (a.FullName.StartsWith("SyntaxTree.VisualStudio.Unity.Bridge"))
                {
                    sao.Init(a);
                    break;
                }
            }
        }