summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Requests/Requests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Requests/Requests.cs')
-rw-r--r--modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Requests/Requests.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Requests/Requests.cs b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Requests/Requests.cs
index e93db9377b..452593b673 100644
--- a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Requests/Requests.cs
+++ b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Requests/Requests.cs
@@ -2,6 +2,7 @@
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
+using System;
using Newtonsoft.Json;
namespace GodotTools.IdeMessaging.Requests
@@ -38,7 +39,7 @@ namespace GodotTools.IdeMessaging.Requests
}
public CompletionKind Kind { get; set; }
- public string ScriptFile { get; set; }
+ public string ScriptFile { get; set; } = string.Empty;
public new const string Id = "CodeCompletion";
@@ -50,8 +51,8 @@ namespace GodotTools.IdeMessaging.Requests
public sealed class CodeCompletionResponse : Response
{
public CodeCompletionRequest.CompletionKind Kind;
- public string ScriptFile { get; set; }
- public string[] Suggestions { get; set; }
+ public string ScriptFile { get; set; } = string.Empty;
+ public string[] Suggestions { get; set; } = Array.Empty<string>();
}
public sealed class PlayRequest : Request
@@ -82,7 +83,7 @@ namespace GodotTools.IdeMessaging.Requests
public sealed class DebugPlayRequest : Request
{
- public string DebuggerHost { get; set; }
+ public string DebuggerHost { get; set; } = string.Empty;
public int DebuggerPort { get; set; }
public bool? BuildBeforePlaying { get; set; }
@@ -99,7 +100,7 @@ namespace GodotTools.IdeMessaging.Requests
public sealed class OpenFileRequest : Request
{
- public string File { get; set; }
+ public string File { get; set; } = string.Empty;
public int? Line { get; set; }
public int? Column { get; set; }