Skip to content

Commit b2d6d6b

Browse files
Merge pull request #15 from Lercher/omnisharp-inheritance
TextDocumentItem inheritance
2 parents 86e0a6e + 17a00f9 commit b2d6d6b

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/Lsp/Models/TextDocumentItem.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@
55
namespace Lsp.Models
66
{
77
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
8-
public class TextDocumentItem
8+
public class TextDocumentItem : TextDocumentIdentifier
99
{
10-
/// <summary>
11-
/// The text document's URI.
12-
/// </summary>
13-
public Uri Uri { get; set; }
14-
1510
/// <summary>
1611
/// The text document's language identifier.
1712
/// </summary>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"textDocument": {
3-
"uri": "file:///abc/def.cs",
43
"languageId": "csharp",
54
"version": 1,
6-
"text": "content"
5+
"text": "content",
6+
"uri": "file:///abc/def.cs"
77
}
88
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"uri": "file:///abc/def.cs",
32
"languageId": "csharp",
43
"version": 1,
5-
"text": "content"
4+
"text": "content",
5+
"uri": "file:///abc/def.cs"
66
}

0 commit comments

Comments
 (0)