зеркало из https://github.com/dotnet/razor.git
Upgrade VS versions and react to changes
This commit is contained in:
Родитель
903badea7f
Коммит
34eedeb7ca
|
@ -76,9 +76,9 @@
|
|||
<Tooling_HtmlEditorPackageVersion>16.10.57-preview1</Tooling_HtmlEditorPackageVersion>
|
||||
<!-- Several packages share the MS.CA.Testing version -->
|
||||
<Tooling_MicrosoftCodeAnalysisTestingVersion>1.1.2-beta1.22109.1</Tooling_MicrosoftCodeAnalysisTestingVersion>
|
||||
<MicrosoftVisualStudioShellPackagesVersion>17.2.32330.158</MicrosoftVisualStudioShellPackagesVersion>
|
||||
<MicrosoftVisualStudioPackagesVersion>17.3.133-preview</MicrosoftVisualStudioPackagesVersion>
|
||||
<RoslynPackageVersion>4.4.0-2.22424.2</RoslynPackageVersion>
|
||||
<MicrosoftVisualStudioShellPackagesVersion>17.3.32622.426</MicrosoftVisualStudioShellPackagesVersion>
|
||||
<MicrosoftVisualStudioPackagesVersion>17.4.203-preview</MicrosoftVisualStudioPackagesVersion>
|
||||
<RoslynPackageVersion>4.5.0-1.22519.14</RoslynPackageVersion>
|
||||
<VisualStudioLanguageServerProtocolVersion>17.4.1008-preview</VisualStudioLanguageServerProtocolVersion>
|
||||
<MicrosoftNetCompilersToolsetVersion>4.4.0-1.final</MicrosoftNetCompilersToolsetVersion>
|
||||
<MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>4.5.0-1.22519.14</MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>
|
||||
|
@ -113,14 +113,14 @@
|
|||
<MicrosoftVisualStudioShell150PackageVersion>$(MicrosoftVisualStudioShellPackagesVersion)</MicrosoftVisualStudioShell150PackageVersion>
|
||||
<MicrosoftVisualStudioInteropPackageVersion>$(MicrosoftVisualStudioShellPackagesVersion)</MicrosoftVisualStudioInteropPackageVersion>
|
||||
<MicrosoftInternalVisualStudioInteropPackageVersion>$(MicrosoftVisualStudioShellPackagesVersion)</MicrosoftInternalVisualStudioInteropPackageVersion>
|
||||
<MicrosoftVisualStudioRpcContractsPackageVersion>17.3.3-alpha</MicrosoftVisualStudioRpcContractsPackageVersion>
|
||||
<MicrosoftVisualStudioRpcContractsPackageVersion>17.3.19</MicrosoftVisualStudioRpcContractsPackageVersion>
|
||||
<MicrosoftVisualStudioTelemetryVersion>16.4.137</MicrosoftVisualStudioTelemetryVersion>
|
||||
<MicrosoftVisualStudioTextDataPackageVersion>$(MicrosoftVisualStudioPackagesVersion)</MicrosoftVisualStudioTextDataPackageVersion>
|
||||
<MicrosoftVisualStudioTextImplementationPackageVersion>$(MicrosoftVisualStudioPackagesVersion)</MicrosoftVisualStudioTextImplementationPackageVersion>
|
||||
<MicrosoftVisualStudioTextLogicPackageVersion>$(MicrosoftVisualStudioPackagesVersion)</MicrosoftVisualStudioTextLogicPackageVersion>
|
||||
<MicrosoftVisualStudioThreadingPackageVersion>17.3.1-alpha</MicrosoftVisualStudioThreadingPackageVersion>
|
||||
<MicrosoftVisualStudioThreadingPackageVersion>17.3.44</MicrosoftVisualStudioThreadingPackageVersion>
|
||||
<MicrosoftVisualStudioWebPackageVersion>16.10.0-preview-1-31008-014</MicrosoftVisualStudioWebPackageVersion>
|
||||
<MicrosoftVisualStudioValidationPackageVersion>17.0.53</MicrosoftVisualStudioValidationPackageVersion>
|
||||
<MicrosoftVisualStudioValidationPackageVersion>17.0.58</MicrosoftVisualStudioValidationPackageVersion>
|
||||
<MicrosoftWebToolsLanguagesHtmlPackageVersion>$(Tooling_HtmlEditorPackageVersion)</MicrosoftWebToolsLanguagesHtmlPackageVersion>
|
||||
<MicrosoftWebToolsLanguagesLanguageServerServerPackageVersion>$(Tooling_HtmlEditorPackageVersion)</MicrosoftWebToolsLanguagesLanguageServerServerPackageVersion>
|
||||
<MicrosoftWebToolsLanguagesSharedPackageVersion>$(Tooling_HtmlEditorPackageVersion)</MicrosoftWebToolsLanguagesSharedPackageVersion>
|
||||
|
@ -135,7 +135,7 @@
|
|||
<OmniSharpExtensionsLanguageServerPackageVersion>0.19.5</OmniSharpExtensionsLanguageServerPackageVersion>
|
||||
<OmniSharpExtensionsLanguageProtocolPackageVersion>$(OmniSharpExtensionsLanguageServerPackageVersion)</OmniSharpExtensionsLanguageProtocolPackageVersion>
|
||||
<OmniSharpMSBuildPackageVersion>1.39.1</OmniSharpMSBuildPackageVersion>
|
||||
<StreamJsonRpcPackageVersion>2.12.7-alpha</StreamJsonRpcPackageVersion>
|
||||
<StreamJsonRpcPackageVersion>2.12.27</StreamJsonRpcPackageVersion>
|
||||
<SystemRuntimeInteropServicesRuntimePackageVersion>4.3.0</SystemRuntimeInteropServicesRuntimePackageVersion>
|
||||
<Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion>3.3.3</Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion>
|
||||
<Tooling_MicrosoftCodeAnalysisNetAnalyzersPackageVersion>7.0.0-preview1.22116.1</Tooling_MicrosoftCodeAnalysisNetAnalyzersPackageVersion>
|
||||
|
|
|
@ -91,6 +91,7 @@ EndProject
|
|||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4CAC99E0-6ECE-4264-96C3-AF4EEE7BC9D1}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
..\..\.editorconfig = ..\..\.editorconfig
|
||||
..\..\eng\Versions.props = ..\..\eng\Versions.props
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Razor.IntegrationTests", "test\Microsoft.VisualStudio.Razor.IntegrationTests\Microsoft.VisualStudio.Razor.IntegrationTests.csproj", "{8CEC0991-259F-4313-B3EF-E398F2B40E61}"
|
||||
|
@ -101,7 +102,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorDeployment", "src\Razo
|
|||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.LanguageServer.Protocol", "src\Microsoft.AspNetCore.Razor.LanguageServer.Protocol\Microsoft.AspNetCore.Razor.LanguageServer.Protocol.csproj", "{093B790B-1283-4EB3-B77E-4F9C4FB2A895}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNetCore.Razor.Common", "src\Microsoft.AspNetCore.Razor.Common\Microsoft.AspNetCore.Razor.Common.csproj", "{95ED6267-9A02-4B52-9EF5-C0BBE183C8FF}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Common", "src\Microsoft.AspNetCore.Razor.Common\Microsoft.AspNetCore.Razor.Common.csproj", "{95ED6267-9A02-4B52-9EF5-C0BBE183C8FF}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Compiler", "Compiler", "{5B60F564-4AD7-4B70-A887-7D91496799A2}"
|
||||
EndProject
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.Common
|
|||
_filePath = filePath;
|
||||
}
|
||||
|
||||
public override Task<TextAndVersion> LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken)
|
||||
public override Task<TextAndVersion> LoadTextAndVersionAsync(Workspace? workspace, DocumentId? documentId, CancellationToken cancellationToken)
|
||||
{
|
||||
|
||||
TextAndVersion textAndVersion;
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer
|
|||
_documentSnapshot = documentSnapshot;
|
||||
}
|
||||
|
||||
public override async Task<TextAndVersion> LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken)
|
||||
public override async Task<TextAndVersion> LoadTextAndVersionAsync(Workspace? workspace, DocumentId? documentId, CancellationToken cancellationToken)
|
||||
{
|
||||
var sourceText = await _documentSnapshot.GetTextAsync();
|
||||
var textAndVersion = TextAndVersion.Create(sourceText, VersionStamp.Default);
|
||||
|
|
|
@ -497,8 +497,8 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem
|
|||
_fromDocument = fromDocument ?? throw new ArgumentNullException(nameof(fromDocument));
|
||||
}
|
||||
public override async Task<TextAndVersion> LoadTextAndVersionAsync(
|
||||
Workspace workspace,
|
||||
DocumentId documentId,
|
||||
Workspace? workspace,
|
||||
DocumentId? documentId,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
var sourceText = await _fromDocument.GetTextAsync();
|
||||
|
|
|
@ -158,7 +158,7 @@ namespace Microsoft.VisualStudio.LanguageServerClient.Razor
|
|||
_filePath = filePath;
|
||||
}
|
||||
|
||||
public override Task<TextAndVersion> LoadTextAndVersionAsync(CodeAnalysisWorkspace workspace, DocumentId documentId, CancellationToken cancellationToken)
|
||||
public override Task<TextAndVersion> LoadTextAndVersionAsync(CodeAnalysisWorkspace? workspace, DocumentId? documentId, CancellationToken cancellationToken)
|
||||
{
|
||||
return Task.FromResult(TextAndVersion.Create(_sourceText, VersionStamp.Default, _filePath));
|
||||
}
|
||||
|
|
|
@ -129,7 +129,6 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.Test.Common
|
|||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
_testWorkspace.Dispose();
|
||||
await _languageServer.DisposeAsync();
|
||||
|
||||
_clientRpc.Dispose();
|
||||
_clientMessageFormatter.Dispose();
|
||||
|
|
|
@ -193,7 +193,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer
|
|||
}
|
||||
|
||||
public override Task<TextAndVersion> LoadTextAndVersionAsync(
|
||||
Workspace workspace, DocumentId documentId, CancellationToken cancellationToken)
|
||||
Workspace? workspace, DocumentId? documentId, CancellationToken cancellationToken)
|
||||
{
|
||||
return Task.FromResult(TextAndVersion.Create(_sourceText, VersionStamp.Default, _filePath));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче