Skip to content

Added code generation for OnXyz and SendXyz methods (1/2) #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@
<PackageReference Update="Xunit.SkippableFact" Version="1.4.8" />
<PackageReference Update="System.IO.Pipelines" Version="4.7.1"/>
<PackageReference Update="Nerdbank.Streams" Version="2.4.60" />
<PackageReference Update="CodeGeneration.Roslyn.Attributes" Version="0.7.63" PrivateAssets="all" />
<PackageReference Update="CodeGeneration.Roslyn.Engine" Version="0.7.63" />
<PackageReference Update="CodeGeneration.Roslyn.Tool" Version="0.7.63" PrivateAssets="all" />
<PackageReference Update="Microsoft.CodeAnalysis.CSharp" Version="3.4.0" />
<PackageReference Update="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.4.0" />
</ItemGroup>
</Project>
35 changes: 30 additions & 5 deletions LSP.sln
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Protocol", "src\Protocol\Pr
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Server", "src\Server\Server.csproj", "{E540868F-438E-4F7F-BBB7-010D6CB18A57}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7E4A7675-45F3-4636-88AC-2C158C1A140D}"
ProjectSection(SolutionItems) = preProject
cake.config = cake.config
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dap.Protocol", "src\Dap.Protocol\Dap.Protocol.csproj", "{F2C9D555-118E-442B-A953-9A7B58A53F33}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dap.Server", "src\Dap.Server\Dap.Server.csproj", "{E1A9123B-A236-4240-8C82-A61BD85C3BF4}"
Expand All @@ -73,6 +68,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Testing", "src\Testing\Test
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JsonRpc.Testing", "src\JsonRpc.Testing\JsonRpc.Testing.csproj", "{202BA1AB-25DA-44ED-B962-FD82FCC74543}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JsonRpc.Generators", "src\JsonRpc.Generators\JsonRpc.Generators.csproj", "{DE259174-73DC-4532-B641-AD218971EE29}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Generation.Tests", "test\Generation.Tests\Generation.Tests.csproj", "{671FFF78-BDD2-4389-B29C-BFD183DA9120}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -293,6 +292,30 @@ Global
{202BA1AB-25DA-44ED-B962-FD82FCC74543}.Release|x64.Build.0 = Release|Any CPU
{202BA1AB-25DA-44ED-B962-FD82FCC74543}.Release|x86.ActiveCfg = Release|Any CPU
{202BA1AB-25DA-44ED-B962-FD82FCC74543}.Release|x86.Build.0 = Release|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Debug|x64.ActiveCfg = Debug|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Debug|x64.Build.0 = Debug|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Debug|x86.ActiveCfg = Debug|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Debug|x86.Build.0 = Debug|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Release|Any CPU.Build.0 = Release|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Release|x64.ActiveCfg = Release|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Release|x64.Build.0 = Release|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Release|x86.ActiveCfg = Release|Any CPU
{DE259174-73DC-4532-B641-AD218971EE29}.Release|x86.Build.0 = Release|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Debug|Any CPU.Build.0 = Debug|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Debug|x64.ActiveCfg = Debug|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Debug|x64.Build.0 = Debug|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Debug|x86.ActiveCfg = Debug|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Debug|x86.Build.0 = Debug|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Release|Any CPU.ActiveCfg = Release|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Release|Any CPU.Build.0 = Release|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Release|x64.ActiveCfg = Release|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Release|x64.Build.0 = Release|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Release|x86.ActiveCfg = Release|Any CPU
{671FFF78-BDD2-4389-B29C-BFD183DA9120}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -316,6 +339,8 @@ Global
{91919C54-3638-4A3C-963A-327D78368EE3} = {D764E024-3D3F-4112-B932-2DB722A1BACC}
{A1EC39EE-AA1F-4EC9-9939-28C3532585C9} = {D764E024-3D3F-4112-B932-2DB722A1BACC}
{202BA1AB-25DA-44ED-B962-FD82FCC74543} = {D764E024-3D3F-4112-B932-2DB722A1BACC}
{DE259174-73DC-4532-B641-AD218971EE29} = {D764E024-3D3F-4112-B932-2DB722A1BACC}
{671FFF78-BDD2-4389-B29C-BFD183DA9120} = {2F323ED5-EBF8-45E1-B9D3-C014561B3DDA}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D38DD0EC-D095-4BCD-B8AF-2D788AF3B9AE}
Expand Down
2 changes: 2 additions & 0 deletions src/Dap.Protocol/Dap.Protocol.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

<ItemGroup>
<ProjectReference Include="..\JsonRpc\JsonRpc.csproj" />
<ProjectReference Include="..\JsonRpc.Generators\JsonRpc.Generators.csproj" OutputItemType="CodeGenerationRoslynPlugin" PrivateAssets="all" />
<PackageReference Include="CodeGeneration.Roslyn.Tool" />
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>OmniSharp.Extensions.LanguageServer, PublicKey=0024000004800000940000000602000000240000525341310004000001000100391db875e68eb4bfef49ce14313b9e13f2cd3cc89eb273bbe6c11a55044c7d4f566cf092e1c77ef9e7c75b1496ae7f95d925938f5a01793dd8d9f99ae0a7595779b71b971287d7d7b5960d052078d14f5ce1a85ea5c9fb2f59ac735ff7bc215cab469b7c3486006860bad6f4c3b5204ea2f28dd4e1d05e2cca462cfd593b9f9f</_Parameter1>
</AssemblyAttribute>
Expand Down
15 changes: 15 additions & 0 deletions src/JsonRpc.Generation/JsonRpc.Generation.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Sdk Name="CodeGeneration.Roslyn.PluginMetapackage.Sdk" Version="0.7.63"/>

<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<AssemblyName>OmniSharp.Extensions.JsonRpc.Generation</AssemblyName>
<RootNamespace>OmniSharp.Extensions.JsonRpc.Generation</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../JsonRpc/JsonRpc.csproj"/>
<NupkgAdditionalDependency Include="OmniSharp.Extensions.JsonRpc.Generators" IncludeAssets="all"/>
</ItemGroup>

</Project>
Loading