Initial commit of SqlTools Service API

This commit is contained in:
Karl Burtram
2016-07-15 11:02:03 -07:00
parent 874ade9001
commit 790825cfab
112 changed files with 9782 additions and 1 deletions

View File

@@ -0,0 +1,53 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
{
public class StackFrame
{
public int Id { get; set; }
public string Name { get; set; }
public Source Source { get; set; }
public int Line { get; set; }
public int Column { get; set; }
// /** An identifier for the stack frame. */
//id: number;
///** The name of the stack frame, typically a method name */
//name: string;
///** The source of the frame. */
//source: Source;
///** The line within the file of the frame. */
//line: number;
///** The column within the line. */
//column: number;
///** All arguments and variables declared in this stackframe. */
//scopes: Scope[];
#if false
public static StackFrame Create(
StackFrameDetails stackFrame,
int id)
{
return new StackFrame
{
Id = id,
Name = stackFrame.FunctionName,
Line = stackFrame.LineNumber,
Column = stackFrame.ColumnNumber,
Source = new Source
{
Path = stackFrame.ScriptPath
}
};
}
#endif
}
}