File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
src/PowerShellEditorServices.Protocol/DebugAdapter Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 3
3
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4
4
//
5
5
6
- using System ;
7
- using System . Collections . Generic ;
8
- using System . Linq ;
9
- using System . Text ;
10
- using System . Threading . Tasks ;
11
-
12
6
namespace Microsoft . PowerShell . EditorServices . Protocol . DebugAdapter
13
7
{
14
8
public class Scope
15
9
{
16
- // /** name of the scope (as such 'Arguments', 'Locals') */
17
- // name: string;
10
+ /// <summary>
11
+ /// Gets or sets the name of the scope (as such 'Arguments', 'Locals')
12
+ /// </summary>
18
13
public string Name { get ; set ; }
19
14
20
- // /** The variables of this scope can be retrieved by passing the value of variablesReference to the VariablesRequest. */
21
- // variablesReference: number;
15
+ /// <summary>
16
+ /// Gets or sets the variables of this scope can be retrieved by passing the
17
+ /// value of variablesReference to the VariablesRequest.
18
+ /// </summary>
22
19
public int VariablesReference { get ; set ; }
23
20
24
- // /** If true, the number of variables in this scope is large or expensive to retrieve. */
25
- // expensive: boolean;
21
+ /// <summary>
22
+ /// Gets or sets a boolean value indicating if number of variables in
23
+ /// this scope is large or expensive to retrieve.
24
+ /// </summary>
26
25
public bool Expensive { get ; set ; }
27
26
28
27
public static Scope Create ( VariableScope scope )
29
28
{
30
- return new Scope
31
- {
29
+ return new Scope {
32
30
Name = scope . Name ,
33
- VariablesReference = scope . Id
31
+ VariablesReference = scope . Id ,
32
+ // Temporary fix for #95 to get debug hover tips to work well at least for the local scope.
33
+ Expensive = ( scope . Name != VariableContainerDetails . LocalScopeName )
34
34
} ;
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments