diff options
author | nosami <jasonimison@gmail.com> | 2019-07-19 16:21:15 +0300 |
---|---|---|
committer | nosami <jasonimison@gmail.com> | 2019-08-06 21:06:37 +0300 |
commit | bf002b5363fa4eed4da9f10de85728f990d03bec (patch) | |
tree | 984a36230985a683a377082f739624e6aac5ccb3 /main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol | |
parent | d532c6a52e40959517836f5dc857232487e712c4 (diff) |
dotnet core support
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VsCodeStackFrame.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VsCodeStackFrame.cs b/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VsCodeStackFrame.cs index a72aeb7634..2304697989 100644 --- a/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VsCodeStackFrame.cs +++ b/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VsCodeStackFrame.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.Messages; @@ -37,9 +38,17 @@ namespace MonoDevelop.Debugger.VsCodeDebugProtocol return null; } + static SourceLink GetSourceLink(VSSourceLinkInfo info) + { + if (info == null) + return null; + return new SourceLink (info.Url, info.RelativeFilePath); + } + static SourceLocation GetSourceLocation (VsStackFrame frame) { - return new SourceLocation (frame.Name, frame.Source?.Path, frame.Line, frame.Column, frame.EndLine ?? -1, frame.EndColumn ?? -1, GetHashBytes (frame.Source)); + var sourceLink = GetSourceLink (frame.Source.VsSourceLinkInfo); + return new SourceLocation (frame.Name, frame.Source?.Path, frame.Line, frame.Column, frame.EndLine ?? -1, frame.EndColumn ?? -1, GetHashBytes (frame.Source), sourceLink); } VsFormat format; |