Skip to content

Commit

Permalink
Added property to V1
Browse files Browse the repository at this point in the history
  • Loading branch information
akshita31 committed Dec 1, 2017
1 parent 93b3846 commit 884742f
Show file tree
Hide file tree
Showing 10 changed files with 387 additions and 486 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.Text;
namespace OmniSharp.Models.v2.TypeLookUp
namespace OmniSharp.Models.TypeLookup
{
public class DocumentationComment
{
Expand All @@ -9,9 +7,9 @@ public class DocumentationComment
public string ReturnsText { get; set; }
public string SummaryText { get; set; }
public string ValueText { get; set; }
public string [ ] ParamElements { get; set; }
public string [ ] TypeParamElements { get; set; }
public string [ ] Exception { get; set; }
public string[ ] ParamElements { get; set; }
public string[ ] TypeParamElements { get; set; }
public string[ ] Exception { get; set; }

public DocumentationComment()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ public class TypeLookupResponse
{
public string Type { get; set; }
public string Documentation { get; set; }
public DocumentationComment StructuredDocumentation { get; set; }
}
}
}

This file was deleted.

This file was deleted.

4 changes: 1 addition & 3 deletions src/OmniSharp.Abstractions/OmniSharpEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,12 @@ public static class V2
{
public const string GetCodeActions = "/v2/getcodeactions";
public const string RunCodeAction = "/v2/runcodeaction";
public const string TypeLookup = "/v2/typelookup";

public const string GetTestStartInfo = "/v2/getteststartinfo";
public const string RunTest = "/v2/runtest";
public const string DebugTestGetStartInfo = "/v2/debugtest/getstartinfo";
public const string DebugTestLaunch = "/v2/debugtest/launch";
public const string DebugTestStop = "/v2/debugtest/stop";

public const string DebugTestStop = "/v2/debugtest/stop";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Text;
using System.Xml;
using OmniSharp.Models.v2.TypeLookUp;
using OmniSharp.Models.TypeLookup;

namespace OmniSharp.Roslyn.CSharp.Services.Documentation
{
Expand Down Expand Up @@ -129,7 +129,7 @@ private static string GetCref(string cref)
return cref + " ";
}

public static DocumentationComment ConvertDocumentationObject(string xmlDocumentation, string lineEnding)
public static DocumentationComment GetStructuredDocumentation(string xmlDocumentation, string lineEnding)
{
if (string.IsNullOrEmpty(xmlDocumentation))
return null;
Expand Down
1 change: 1 addition & 0 deletions src/OmniSharp.Roslyn.CSharp/Services/Types/TypeLookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public async Task<TypeLookupResponse> Handle(TypeLookupRequest request)
if (request.IncludeDocumentation)
{
response.Documentation = DocumentationConverter.ConvertDocumentation(symbol.GetDocumentationCommentXml(), _formattingOptions.NewLine);
response.StructuredDocumentation = DocumentationConverter.GetStructuredDocumentation(symbol.GetDocumentationCommentXml(), _formattingOptions.NewLine);
}
}
}
Expand Down
56 changes: 0 additions & 56 deletions src/OmniSharp.Roslyn.CSharp/Services/Types/V2/TypeLookUp.cs

This file was deleted.

Loading

0 comments on commit 884742f

Please sign in to comment.