File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ using Newtonsoft . Json ;
2
+ using Newtonsoft . Json . Serialization ;
3
+
4
+ namespace OmniSharp . Extensions . LanguageServer . Models
5
+ {
6
+ [ JsonObject ( NamingStrategyType = typeof ( CamelCaseNamingStrategy ) ) ]
7
+ public class TextDocumentEdit
8
+ {
9
+ /// <summary>
10
+ /// The text document to change.
11
+ /// </summary>
12
+ public VersionedTextDocumentIdentifier TextDocument { get ; set ; }
13
+
14
+ /// <summary>
15
+ /// The edits to be applied.
16
+ /// </summary>
17
+ public Container < TextEdit > Edits { get ; set ; }
18
+ }
19
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,15 @@ public class WorkspaceEdit
11
11
/// <summary>
12
12
/// Holds changes to existing resources.
13
13
/// </summary>
14
- public IDictionary < Uri , IEnumerable < TextEdit > > Changes { get ; set ; } = new Dictionary < Uri , IEnumerable < TextEdit > > ( ) ;
14
+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
15
+ public IDictionary < Uri , IEnumerable < TextEdit > > Changes { get ; set ; }
16
+ /// <summary>
17
+ /// An array of `TextDocumentEdit`s to express changes to n different text documents
18
+ /// where each text document edit addresses a specific version of a text document.
19
+ /// Whether a client supports versioned document edits is expressed via
20
+ /// `WorkspaceClientCapabilities.workspaceEdit.documentChanges`.
21
+ /// </summary>
22
+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
23
+ public Container < TextDocumentEdit > DocumentChanges { get ; set ; }
15
24
}
16
- }
25
+ }
You can’t perform that action at this time.
0 commit comments