Skip to content

Commit

Permalink
Updating package references
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Prosperi committed Dec 13, 2023
1 parent 23ca619 commit c165b4a
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.6.36389" ExcludeAssets="runtime" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace DocumentSelectorSample;
/// This text view event listener monitors users opening/modifying/closing C# files in "tests" folder and emulates running
/// unit tests in these files.
/// </summary>
#pragma warning disable VSEXTPREVIEW_OUTPUTWINDOW // Type is for evaluation purposes only and is subject to change or removal in future updates.
[VisualStudioContribution]
internal class UnitTestRunner : ExtensionPart, ITextViewOpenClosedListener, ITextViewChangedListener
{
Expand Down Expand Up @@ -77,20 +78,17 @@ private async Task StopUnitTestsAsync(ITextViewSnapshot textViewSnapshot, Cancel

private async Task<OutputWindow> GetOutputWindowAsync(CancellationToken cancellationToken)
{
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
return this.outputWindow ??= await this.Extensibility.Views().Output.GetChannelAsync(
identifier: nameof(DocumentSelectorSample),
displayNameResourceId: nameof(Resources.OutputWindowPaneName),
cancellationToken);
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
}

private async Task WriteToOutputWindowAsync(string message, CancellationToken cancellationToken)
{
var channel = await this.GetOutputWindowAsync(cancellationToken);
Assumes.NotNull(channel);
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
await channel.Writer.WriteLineAsync(message);
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
}
}
#pragma warning restore VSEXTPREVIEW_OUTPUTWINDOW // Type is for evaluation purposes only and is subject to change or removal in future updates.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/nuget/v3/index.json;$(RestoreAdditionalProjectSources)</RestoreAdditionalProjectSources>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.LanguageServer.Protocol" Version="17.2.8" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public LanguageServerTest(VisualStudioExtensibility extensibility)
}

[VisualStudioContribution]
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
#pragma warning disable VSEXTPREVIEW_LSP // Type is for evaluation purposes only and is subject to change or removal in future updates.
public static DocumentTypeConfiguration TodosDocumentType => new(FileExtension)
{
FileExtensions = ["." + FileExtension],
BaseDocumentType = LanguageServerProvider.LanguageServerBaseDocumentType,
};
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
#pragma warning restore VSEXTPREVIEW_LSP // Type is for evaluation purposes only and is subject to change or removal in future updates.

[DataMember]
public override string ButtonText => "Language Server";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ namespace FeatureGallery.LanguageServer;
using StreamJsonRpc;

/// <inheritdoc/>
#pragma warning disable VSEXTPREVIEW_LSP // Type is for evaluation purposes only and is subject to change or removal in future updates.
[VisualStudioContribution]
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
internal class TodoLanguageServerProvider : LanguageServerProvider
{
/// <inheritdoc/>
Expand All @@ -45,4 +45,4 @@ internal class TodoLanguageServerProvider : LanguageServerProvider
PipeWriter.Create(streams.Item1)));
}
}
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
#pragma warning restore VSEXTPREVIEW_LSP // Type is for evaluation purposes only and is subject to change or removal in future updates.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.LanguageServer.Protocol" Version="17.2.8" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions New_Extensibility_Model/Samples/InsertGuid/InsertGuid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace MarkdownLinter;
/// commands or editor listeners.
/// </summary>
/// <remarks>For a sample ingestion of this service, see <see cref="TextViewEventListener"/> constructor.</remarks>
#pragma warning disable VSEXTPREVIEW_OUTPUTWINDOW // Type is for evaluation purposes only and is subject to change or removal in future updates.
internal class MarkdownDiagnosticsService : DisposableObject
{
#pragma warning disable CA2213 // Disposable fields should be disposed, object now owned by this instance.
Expand Down Expand Up @@ -79,9 +80,7 @@ public async Task ProcessFileAsync(Uri documentUri, CancellationToken cancellati
{
if (this.outputWindow is not null)
{
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
await this.outputWindow.Writer.WriteLineAsync(Strings.MissingLinterError);
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
}
}
}
Expand Down Expand Up @@ -161,21 +160,18 @@ private async Task ProcessDocumentAsync(ITextDocumentSnapshot documentSnapshot,
{
if (this.outputWindow is not null)
{
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
await this.outputWindow.Writer.WriteLineAsync(Strings.MissingLinterError);
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
}
}
}

private async Task InitializeAsync()
{
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
this.outputWindow = await this.extensibility.Views().Output.GetChannelAsync(nameof(MarkdownLinterExtension) + Guid.NewGuid(), nameof(Strings.MarkdownLinterWindowName), default);
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
Assumes.NotNull(this.outputWindow);

this.diagnosticsReporter = this.extensibility.Languages().GetDiagnosticsReporter(nameof(MarkdownLinterExtension));
Assumes.NotNull(this.diagnosticsReporter);
}
}
#pragma warning restore VSEXTPREVIEW_OUTPUTWINDOW // Type is for evaluation purposes only and is subject to change or removal in future updates.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace OutputWindowSample;
/// A sample command for displaying a test message in the output window.
/// </summary>
[VisualStudioContribution]
#pragma warning disable VSEXTPREVIEW_OUTPUTWINDOW // Type is for evaluation purposes only and is subject to change or removal in future updates.
public class TestOutputWindowCommand : Command
{
private OutputWindow? outputWindow;
Expand All @@ -36,18 +37,15 @@ public override async Task ExecuteCommandAsync(IClientContext context, Cancellat
{
if (this.outputWindow != null)
{
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
await this.outputWindow.Writer.WriteLineAsync("This is a test of the output window.");
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
}
}

private async Task<OutputWindow?> GetOutputWindowAsync(CancellationToken cancellationToken)
{
string id = "MyOutputWindow";
string displayNameResourceId = nameof(Strings.OutputWindowDisplayName);
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
return await this.Extensibility.Views().Output.GetChannelAsync(id, displayNameResourceId, cancellationToken);
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
}
}
#pragma warning restore VSEXTPREVIEW_OUTPUTWINDOW // Type is for evaluation purposes only and is subject to change or removal in future updates.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace RustLanguageServerProviderExtension;
using Nerdbank.Streams;

/// <inheritdoc/>
#pragma warning disable VSEXTPREVIEW_LSP // Type is for evaluation purposes only and is subject to change or removal in future updates.
[VisualStudioContribution]
#pragma warning disable VSEXTAPI0001 // This API is marked as Preview.
internal class RustLanguageServerProvider : LanguageServerProvider
{
/// <summary>
Expand Down Expand Up @@ -72,4 +72,4 @@ public override Task OnServerInitializationResultAsync(ServerInitializationResul
return base.OnServerInitializationResultAsync(serverInitializationResult, initializationFailureInfo, cancellationToken);
}
}
#pragma warning restore VSEXTAPI0001 // This API is marked as Preview.
#pragma warning restore VSEXTPREVIEW_LSP // Type is for evaluation purposes only and is subject to change or removal in future updates.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup Condition="Exists('.\rust-analyzer.exe')">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2076" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Sdk" Version="17.9.2079" />
<PackageReference Include="Microsoft.VisualStudio.Extensibility.Build" Version="17.9.2079" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit c165b4a

Please sign in to comment.