From 0ce9a49cc7726ca6ce99a9466071b4b933a100d3 Mon Sep 17 00:00:00 2001 From: Andrew Hall Date: Wed, 1 Dec 2021 12:20:58 -0800 Subject: [PATCH 1/2] Add new parser/lexer to the StackTraceAnalyzer (#57598) (#58050) No functional changes, just moving to the new API and cleaning up unused code --- eng/targets/Services.props | 1 + .../StackTraceExplorerService.cs | 112 +++++++ .../StackTraceExplorerUtilities.cs | 207 ++++++++++++ .../StackTraceExplorerTests.cs | 291 +++++++++++++++-- .../Test/Utilities/StackFrameUtils.cs | 230 +++++++++++++ .../CSharpStackTraceExplorerService.cs | 84 ----- .../StackFrame/StackFrameNodeDefinitions.cs | 22 +- .../DotnetStackFrameParser.cs | 36 +- .../IStackTraceExplorerService.cs | 27 +- .../StackTraceExplorer/IgnoredFrame.cs | 10 +- .../StackTraceExplorer/ParsedFrame.cs | 8 +- .../StackTraceExplorer/ParsedStackFrame.cs | 232 +------------ .../StackFrameParserHelpers.cs | 308 ------------------ .../StackFrameSymbolPart.cs | 26 ++ .../StackTraceExplorer/StackTraceAnalyzer.cs | 11 +- .../VSDebugCallstackParser.cs | 14 +- .../IgnoredFrameViewModel.cs | 2 +- .../StackTraceExplorer/StackFrameViewModel.cs | 204 ++++++++---- .../StackTraceExplorerRootViewModel.cs | 6 +- .../StackTraceExplorerTab.cs | 4 +- .../StackTraceExplorerToolWindow.cs | 3 +- .../StackTraceExplorerViewModel.cs | 6 +- .../Portable/Workspace/Solution/Project.cs | 9 + .../Remote/InProcRemostHostClient.cs | 2 + .../Core/RemoteWorkspacesResources.resx | 3 + .../Remote/Core/ServiceDescriptors.cs | 2 + .../Core/xlf/RemoteWorkspacesResources.cs.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.de.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.es.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.fr.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.it.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.ja.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.ko.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.pl.xlf | 5 + .../xlf/RemoteWorkspacesResources.pt-BR.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.ru.xlf | 5 + .../Core/xlf/RemoteWorkspacesResources.tr.xlf | 5 + .../xlf/RemoteWorkspacesResources.zh-Hans.xlf | 5 + .../xlf/RemoteWorkspacesResources.zh-Hant.xlf | 5 + .../RemoteStackTraceExplorerService.cs | 48 +++ .../Common/EmbeddedSyntaxNode.cs | 50 +++ .../Common/EmbeddedSyntaxToken.cs | 42 +++ .../Common/EmbeddedSyntaxTrivia.cs | 7 + 43 files changed, 1281 insertions(+), 791 deletions(-) create mode 100644 src/EditorFeatures/Core/StackTraceExplorer/StackTraceExplorerService.cs create mode 100644 src/EditorFeatures/Core/StackTraceExplorer/StackTraceExplorerUtilities.cs create mode 100644 src/EditorFeatures/Test/Utilities/StackFrameUtils.cs delete mode 100644 src/Features/CSharp/Portable/StackTraceExplorer/CSharpStackTraceExplorerService.cs delete mode 100644 src/Features/Core/Portable/StackTraceExplorer/StackFrameParserHelpers.cs create mode 100644 src/Features/Core/Portable/StackTraceExplorer/StackFrameSymbolPart.cs create mode 100644 src/Workspaces/Remote/ServiceHub/Services/StackTraceExplorer/RemoteStackTraceExplorerService.cs diff --git a/eng/targets/Services.props b/eng/targets/Services.props index 4d197a5dd3701..cad3d601e7b63 100644 --- a/eng/targets/Services.props +++ b/eng/targets/Services.props @@ -39,6 +39,7 @@ +