Skip to content

Commit 2368c98

Browse files
committed
Заглушка по вычислению OnHover
1 parent 140bd2a commit 2368c98

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/DebugServer/OscriptDebugSession.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ public OscriptDebugSession() : base(true, false)
3535

3636
public override void Initialize(Response response, dynamic args)
3737
{
38+
SessionLog.WriteLine("Initialize:" + args);
3839
SendResponse(response, new Capabilities()
3940
{
4041
supportsConditionalBreakpoints = false,
4142
supportsFunctionBreakpoints = false,
4243
supportsConfigurationDoneRequest = true,
4344
exceptionBreakpointFilters = new dynamic[0],
44-
supportsEvaluateForHovers = false
45+
supportsEvaluateForHovers = true
4546
});
4647

4748
SendEvent(new InitializedEvent());
@@ -396,6 +397,14 @@ public override void Evaluate(Response response, dynamic arguments)
396397
}
397398

398399
var expression = (string) arguments.expression;
400+
var context = (string) arguments.context;
401+
if (context != "watch")
402+
{
403+
var result = new EvaluateResponseBody("Подсказка по значению пока не поддерживается");
404+
SendResponse(response, result);
405+
return;
406+
}
407+
399408
OneScript.DebugProtocol.Variable evalResult;
400409
try
401410
{

0 commit comments

Comments
 (0)