Merge pull request #1546 from aspnet/rel/2.0.0
Update to RoslynDev 2.6.0-* packages
This commit is contained in:
commit
0d69d98933
|
|
@ -11,8 +11,8 @@
|
||||||
<NETStandardImplicitPackageVersion>2.0.0-*</NETStandardImplicitPackageVersion>
|
<NETStandardImplicitPackageVersion>2.0.0-*</NETStandardImplicitPackageVersion>
|
||||||
<NETStandardLibraryNETFrameworkVersion>2.0.0-*</NETStandardLibraryNETFrameworkVersion>
|
<NETStandardLibraryNETFrameworkVersion>2.0.0-*</NETStandardLibraryNETFrameworkVersion>
|
||||||
<RuntimeFrameworkVersion Condition="'$(TargetFramework)'=='netcoreapp2.0'">2.0.0-*</RuntimeFrameworkVersion>
|
<RuntimeFrameworkVersion Condition="'$(TargetFramework)'=='netcoreapp2.0'">2.0.0-*</RuntimeFrameworkVersion>
|
||||||
<RoslynVersion>2.3.0-beta4-*</RoslynVersion>
|
<RoslynVersion>2.3.0</RoslynVersion>
|
||||||
<RoslynDevVersion>2.3.0-beta4-*</RoslynDevVersion>
|
<RoslynDevVersion>2.6.0-beta*</RoslynDevVersion>
|
||||||
<StreamJsonRpcVersion>1.1.92</StreamJsonRpcVersion>
|
<StreamJsonRpcVersion>1.1.92</StreamJsonRpcVersion>
|
||||||
<TestSdkVersion>15.3.0-*</TestSdkVersion>
|
<TestSdkVersion>15.3.0-*</TestSdkVersion>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,4 +43,4 @@ namespace Microsoft.CodeAnalysis.Remote.Razor
|
||||||
return resolutionResult;
|
return resolutionResult;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ namespace Microsoft.CodeAnalysis.Remote.Razor
|
||||||
{
|
{
|
||||||
var projectId = ProjectId.CreateFromSerialized(projectIdBytes, projectDebugName);
|
var projectId = ProjectId.CreateFromSerialized(projectIdBytes, projectDebugName);
|
||||||
|
|
||||||
var solution = await GetSolutionAsync().ConfigureAwait(false);
|
var solution = await GetSolutionAsync(cancellationToken).ConfigureAwait(false);
|
||||||
var project = solution.GetProject(projectId);
|
var project = solution.GetProject(projectId);
|
||||||
|
|
||||||
var resolver = new DefaultTagHelperResolver(designTime: true);
|
var resolver = new DefaultTagHelperResolver(designTime: true);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,11 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor
|
||||||
|
|
||||||
using (var session = await client.CreateSessionAsync(project.Solution))
|
using (var session = await client.CreateSessionAsync(project.Solution))
|
||||||
{
|
{
|
||||||
var directives = await session.InvokeAsync<IEnumerable<DirectiveDescriptor>>("GetDirectivesAsync", new object[] { project.Id.Id, "Foo", }).ConfigureAwait(false);
|
var directives = await session.InvokeAsync<IEnumerable<DirectiveDescriptor>>(
|
||||||
|
"GetDirectivesAsync",
|
||||||
|
new object[] { project.Id.Id, "Foo", },
|
||||||
|
cancellationToken)
|
||||||
|
.ConfigureAwait(false);
|
||||||
return directives;
|
return directives;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -37,4 +41,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,11 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor
|
||||||
|
|
||||||
using (var session = await client.CreateSessionAsync(project.Solution))
|
using (var session = await client.CreateSessionAsync(project.Solution))
|
||||||
{
|
{
|
||||||
var document = await session.InvokeAsync<RazorEngineDocument>("GenerateDocumentAsync", new object[] { project.Id.Id, "Foo", filePath, text }).ConfigureAwait(false);
|
var document = await session.InvokeAsync<RazorEngineDocument>(
|
||||||
|
"GenerateDocumentAsync",
|
||||||
|
new object[] { project.Id.Id, "Foo", filePath, text },
|
||||||
|
cancellationToken)
|
||||||
|
.ConfigureAwait(false);
|
||||||
return document;
|
return document;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,10 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor
|
||||||
if (session != null)
|
if (session != null)
|
||||||
{
|
{
|
||||||
var jsonObject = await session.InvokeAsync<JObject>(
|
var jsonObject = await session.InvokeAsync<JObject>(
|
||||||
"GetTagHelpersAsync",
|
"GetTagHelpersAsync",
|
||||||
new object[] { project.Id.Id, "Foo", }).ConfigureAwait(false);
|
new object[] { project.Id.Id, "Foo", },
|
||||||
|
CancellationToken.None
|
||||||
|
).ConfigureAwait(false);
|
||||||
|
|
||||||
result = GetTagHelperResolutionResult(jsonObject);
|
result = GetTagHelperResolutionResult(jsonObject);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue