mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-20 17:24:00 -05:00
Initial commit of SqlTools Service API
This commit is contained in:
33
ServiceHost/DebugAdapter/Variable.cs
Normal file
33
ServiceHost/DebugAdapter/Variable.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// 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 Variable
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
// /** The variable's value. For structured objects this can be a multi line text, e.g. for a function the body of a function. */
|
||||
public string Value { get; set; }
|
||||
|
||||
// /** If variablesReference is > 0, the variable is structured and its children can be retrieved by passing variablesReference to the VariablesRequest. */
|
||||
public int VariablesReference { get; set; }
|
||||
|
||||
#if false
|
||||
public static Variable Create(VariableDetailsBase variable)
|
||||
{
|
||||
return new Variable
|
||||
{
|
||||
Name = variable.Name,
|
||||
Value = variable.ValueString ?? string.Empty,
|
||||
VariablesReference =
|
||||
variable.IsExpandable ?
|
||||
variable.Id : 0
|
||||
};
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user