Skip to content

Commit 7a916ea

Browse files
authored
Merge pull request #18 from JaneySprings/fix-wfchange
Fix NullReferenceException when using `DidChangeWorkspaceFolders` event
2 parents c038605 + e7ba98d commit 7a916ea

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
namespace EmmyLua.LanguageServer.Framework.Protocol.Message.WorkspaceFolders;
1+
using System.Text.Json.Serialization;
2+
3+
namespace EmmyLua.LanguageServer.Framework.Protocol.Message.WorkspaceFolders;
24

35
public class WorkspaceFoldersChangeEvent
46
{
57
/**
68
* The array of added workspace folders
79
*/
10+
[JsonPropertyName("added")]
811
public List<Model.WorkspaceFolder> Added { get; set; } = null!;
912

1013
/**
1114
* The array of the removed workspace folders
1215
*/
16+
[JsonPropertyName("removed")]
1317
public List<Model.WorkspaceFolder> Removed { get; set; } = null!;
1418
}

0 commit comments

Comments
 (0)