Example #1
0
 public VsCodeStackFrame(VsFormat format, int threadId, int frameIndex, Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.Messages.StackFrame frame)
     : base(0, new SourceLocation(frame.Name, frame.Source?.Path, frame.Line, frame.Column, frame.EndLine ?? -1, frame.EndColumn ?? -1), GetLanguage(frame.Source?.Path))
 {
     this.format             = format;
     this.threadId           = threadId;
     this.frameIndex         = frameIndex;
     this.fullStackframeText = frame.Name;
 }
Example #2
0
 public VsCodeStackFrame(VsFormat format, int threadId, int frameIndex, VsStackFrame frame)
     : base(0, GetSourceLocation(frame), GetLanguage(frame.Source?.Path))
 {
     this.format             = format;
     this.threadId           = threadId;
     this.frameIndex         = frameIndex;
     this.fullStackframeText = frame.Name;
     this.frameId            = frame.Id;
 }
Example #3
0
 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)));
 }
        static SourceLocation GetSourceLocation(VsStackFrame frame)
        {
            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));
        }