Skip to content

Commit 1607283

Browse files
committed
WI #1975 Rename field
1 parent c054c1f commit 1607283

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

TypeCobol.LanguageServer.Test/LSRTests/RefreshCopiesNotif/input/RefreshCopyNotif.tlsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
},
2020
{
2121
"category": 1,
22-
"message": "{\"jsonrpc\":\"2.0\",\"method\":\"typecobol/missingCopies\",\"params\":{\"textDocument\":{\"uri\":\"file:///C:/Users/BALLMA/AppData/Local/Temp/1/tcbl/DVZZBCO04742822857809968410.cee\"},\"Copies\":[\"YDVZERL\",\"YSTIEM1\"],\"cpyCopies\":[]}}"
22+
"message": "{\"jsonrpc\":\"2.0\",\"method\":\"typecobol/missingCopies\",\"params\":{\"textDocument\":{\"uri\":\"file:///C:/Users/BALLMA/AppData/Local/Temp/1/tcbl/DVZZBCO04742822857809968410.cee\"},\"Copies\":[\"YDVZERL\",\"YSTIEM1\"],\"CpyCopies\":[]}}"
2323
},
2424
{
2525
"category": 0,
2626
"message": "{\"jsonrpc\":\"2.0\",\"method\":\"typecobol/extractusecopy\",\"params\":{\"textDocument\":{\"uri\":\"file:/C:/Users/BALLMA/AppData/Local/Temp/1/tcbl/DVZZBCO04742822857809968410.cee\"}}}"
2727
},
2828
{
2929
"category": 1,
30-
"message": "{\"jsonrpc\":\"2.0\",\"method\":\"typecobol/missingCopies\",\"params\":{\"textDocument\":{\"uri\":\"file:/C:/Users/BALLMA/AppData/Local/Temp/1/tcbl/DVZZBCO04742822857809968410.cee\"},\"Copies\":[\"YDVZERL\",\"YSTIEM1\"],\"cpyCopies\":[]}}"
30+
"message": "{\"jsonrpc\":\"2.0\",\"method\":\"typecobol/missingCopies\",\"params\":{\"textDocument\":{\"uri\":\"file:/C:/Users/BALLMA/AppData/Local/Temp/1/tcbl/DVZZBCO04742822857809968410.cee\"},\"Copies\":[\"YDVZERL\",\"YSTIEM1\"],\"CpyCopies\":[]}}"
3131
}
3232
],
3333
"didClose": "{\"jsonrpc\":\"2.0\",\"method\":\"textDocument/didClose\",\"params\":{\"textDocument\":{\"uri\":\"file:/C:/Users/BALLMA/AppData/Local/Temp/1/tcbl/DVZZBCO04742822857809968410.cee\"}}}",

TypeCobol.LanguageServer/TypeCobolCustomLanguageServer/Missing Copies Notification/MissingCopiesParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ class MissingCopiesParams
1818
/// <summary>
1919
/// List of missing CPY copies
2020
/// </summary>
21-
public List<string> cpyCopies { get; set; }
21+
public List<string> CpyCopies { get; set; }
2222
}
2323
}

TypeCobol.LanguageServer/TypeCobolServer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ protected void MissingCopiesDetected(TextDocumentIdentifier textDocument, List<s
172172
missingCopiesParam.textDocument = textDocument;
173173

174174
#if EUROINFO_RULES
175-
ILookup<bool, string> lookup = copiesName.ToLookup<string, bool>(s => Workspace.CompilationProject.CompilationOptions.HasCpyCopy(s));
175+
ILookup<bool, string> lookup = copiesName.ToLookup(s => Workspace.CompilationProject.CompilationOptions.HasCpyCopy(s));
176176
missingCopiesParam.Copies = lookup[false].ToList();
177-
missingCopiesParam.cpyCopies = lookup[true].ToList();
177+
missingCopiesParam.CpyCopies = lookup[true].ToList();
178178
#else
179179
missingCopiesParam.Copies = copiesName;
180-
missingCopiesParam.cpyCopies = new List<string>();
180+
missingCopiesParam.CpyCopies = new List<string>();
181181
#endif
182182
this.RpcServer.SendNotification(MissingCopiesNotification.Type, missingCopiesParam);
183183
}

0 commit comments

Comments
 (0)