mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Merge some code clean ups. Find+Replace 'PowerShell' with 'SQL Tools'. Enable logger in ServiceHost project.
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
namespace Microsoft.SqlTools.EditorServices.Protocol.DebugAdapter
|
|
{
|
|
public class Scope
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the name of the scope (as such 'Arguments', 'Locals')
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the variables of this scope can be retrieved by passing the
|
|
/// value of variablesReference to the VariablesRequest.
|
|
/// </summary>
|
|
public int VariablesReference { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a boolean value indicating if number of variables in
|
|
/// this scope is large or expensive to retrieve.
|
|
/// </summary>
|
|
public bool Expensive { get; set; }
|
|
|
|
#if false
|
|
public static Scope Create(VariableScope scope)
|
|
{
|
|
return new Scope {
|
|
Name = scope.Name,
|
|
VariablesReference = scope.Id,
|
|
// Temporary fix for #95 to get debug hover tips to work well at least for the local scope.
|
|
Expensive = (scope.Name != VariableContainerDetails.LocalScopeName)
|
|
};
|
|
}
|
|
#endif
|
|
}
|
|
}
|
|
|