diff --git a/New_Extensibility_Model/Samples/CommandParentingSample/CommandParentingSample.csproj b/New_Extensibility_Model/Samples/CommandParentingSample/CommandParentingSample.csproj
index deb1ed0a..bc73bc54 100644
--- a/New_Extensibility_Model/Samples/CommandParentingSample/CommandParentingSample.csproj
+++ b/New_Extensibility_Model/Samples/CommandParentingSample/CommandParentingSample.csproj
@@ -11,7 +11,7 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/CommentRemover/CommentRemover.csproj b/New_Extensibility_Model/Samples/CommentRemover/CommentRemover.csproj
index 108b577c..a2722e68 100644
--- a/New_Extensibility_Model/Samples/CommentRemover/CommentRemover.csproj
+++ b/New_Extensibility_Model/Samples/CommentRemover/CommentRemover.csproj
@@ -14,8 +14,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/DialogSample/DialogSample.csproj b/New_Extensibility_Model/Samples/DialogSample/DialogSample.csproj
index 1b5a7cd9..1ea71e56 100644
--- a/New_Extensibility_Model/Samples/DialogSample/DialogSample.csproj
+++ b/New_Extensibility_Model/Samples/DialogSample/DialogSample.csproj
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/DocumentSelectorSample/DocumentSelectorSample.csproj b/New_Extensibility_Model/Samples/DocumentSelectorSample/DocumentSelectorSample.csproj
index 486b45fd..6bccf758 100644
--- a/New_Extensibility_Model/Samples/DocumentSelectorSample/DocumentSelectorSample.csproj
+++ b/New_Extensibility_Model/Samples/DocumentSelectorSample/DocumentSelectorSample.csproj
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/DocumentSelectorSample/UnitTestRunner.cs b/New_Extensibility_Model/Samples/DocumentSelectorSample/UnitTestRunner.cs
index 1ce2d58e..f5dc19be 100644
--- a/New_Extensibility_Model/Samples/DocumentSelectorSample/UnitTestRunner.cs
+++ b/New_Extensibility_Model/Samples/DocumentSelectorSample/UnitTestRunner.cs
@@ -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.
///
+#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
{
@@ -77,20 +78,17 @@ private async Task StopUnitTestsAsync(ITextViewSnapshot textViewSnapshot, Cancel
private async Task 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.
diff --git a/New_Extensibility_Model/Samples/FeatureGallery/FeatureGallery.csproj b/New_Extensibility_Model/Samples/FeatureGallery/FeatureGallery.csproj
index bcb2ce57..a8defc30 100644
--- a/New_Extensibility_Model/Samples/FeatureGallery/FeatureGallery.csproj
+++ b/New_Extensibility_Model/Samples/FeatureGallery/FeatureGallery.csproj
@@ -9,8 +9,8 @@
https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/nuget/v3/index.json;$(RestoreAdditionalProjectSources)
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/FeatureGallery/LanguageServer/LanguageServerTest.cs b/New_Extensibility_Model/Samples/FeatureGallery/LanguageServer/LanguageServerTest.cs
index c97d475a..a506abf6 100644
--- a/New_Extensibility_Model/Samples/FeatureGallery/LanguageServer/LanguageServerTest.cs
+++ b/New_Extensibility_Model/Samples/FeatureGallery/LanguageServer/LanguageServerTest.cs
@@ -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";
diff --git a/New_Extensibility_Model/Samples/FeatureGallery/LanguageServer/TodoLanguageServerProvider.cs b/New_Extensibility_Model/Samples/FeatureGallery/LanguageServer/TodoLanguageServerProvider.cs
index 4cd620a1..aa446e92 100644
--- a/New_Extensibility_Model/Samples/FeatureGallery/LanguageServer/TodoLanguageServerProvider.cs
+++ b/New_Extensibility_Model/Samples/FeatureGallery/LanguageServer/TodoLanguageServerProvider.cs
@@ -18,8 +18,8 @@ namespace FeatureGallery.LanguageServer;
using StreamJsonRpc;
///
+#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
{
///
@@ -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.
diff --git a/New_Extensibility_Model/Samples/InProcFeatureGallery/InProcFeatureGallery.csproj b/New_Extensibility_Model/Samples/InProcFeatureGallery/InProcFeatureGallery.csproj
index fe43bfc0..3a52222d 100644
--- a/New_Extensibility_Model/Samples/InProcFeatureGallery/InProcFeatureGallery.csproj
+++ b/New_Extensibility_Model/Samples/InProcFeatureGallery/InProcFeatureGallery.csproj
@@ -13,8 +13,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/InsertGuid/InsertGuid.csproj b/New_Extensibility_Model/Samples/InsertGuid/InsertGuid.csproj
index 24f87d5f..d2489b9b 100644
--- a/New_Extensibility_Model/Samples/InsertGuid/InsertGuid.csproj
+++ b/New_Extensibility_Model/Samples/InsertGuid/InsertGuid.csproj
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/MarkdownLinter/MarkdownDiagnosticsService.cs b/New_Extensibility_Model/Samples/MarkdownLinter/MarkdownDiagnosticsService.cs
index eb361bf1..b867d20c 100644
--- a/New_Extensibility_Model/Samples/MarkdownLinter/MarkdownDiagnosticsService.cs
+++ b/New_Extensibility_Model/Samples/MarkdownLinter/MarkdownDiagnosticsService.cs
@@ -20,6 +20,7 @@ namespace MarkdownLinter;
/// commands or editor listeners.
///
/// For a sample ingestion of this service, see constructor.
+#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.
@@ -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.
}
}
}
@@ -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.
diff --git a/New_Extensibility_Model/Samples/MarkdownLinter/MarkdownLinter.csproj b/New_Extensibility_Model/Samples/MarkdownLinter/MarkdownLinter.csproj
index c96f43b4..e4a108a4 100644
--- a/New_Extensibility_Model/Samples/MarkdownLinter/MarkdownLinter.csproj
+++ b/New_Extensibility_Model/Samples/MarkdownLinter/MarkdownLinter.csproj
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/MemoryStreamDebugVisualizer/MemoryStreamVisualizer/MemoryStreamVisualizer.csproj b/New_Extensibility_Model/Samples/MemoryStreamDebugVisualizer/MemoryStreamVisualizer/MemoryStreamVisualizer.csproj
index 9c8e9b94..0d9f3346 100644
--- a/New_Extensibility_Model/Samples/MemoryStreamDebugVisualizer/MemoryStreamVisualizer/MemoryStreamVisualizer.csproj
+++ b/New_Extensibility_Model/Samples/MemoryStreamDebugVisualizer/MemoryStreamVisualizer/MemoryStreamVisualizer.csproj
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/OutputWindowSample/OutputWindowSample.csproj b/New_Extensibility_Model/Samples/OutputWindowSample/OutputWindowSample.csproj
index 49292f9e..49af7a78 100644
--- a/New_Extensibility_Model/Samples/OutputWindowSample/OutputWindowSample.csproj
+++ b/New_Extensibility_Model/Samples/OutputWindowSample/OutputWindowSample.csproj
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/OutputWindowSample/TestOutputWindowCommand.cs b/New_Extensibility_Model/Samples/OutputWindowSample/TestOutputWindowCommand.cs
index 789393bc..05eea10b 100644
--- a/New_Extensibility_Model/Samples/OutputWindowSample/TestOutputWindowCommand.cs
+++ b/New_Extensibility_Model/Samples/OutputWindowSample/TestOutputWindowCommand.cs
@@ -13,6 +13,7 @@ namespace OutputWindowSample;
/// A sample command for displaying a test message in the output window.
///
[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;
@@ -36,9 +37,7 @@ 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.
}
}
@@ -46,8 +45,7 @@ public override async Task ExecuteCommandAsync(IClientContext context, Cancellat
{
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.
diff --git a/New_Extensibility_Model/Samples/RegexMatchDebugVisualizer/RegexMatchDebugVisualizer/RegexMatchDebugVisualizer.csproj b/New_Extensibility_Model/Samples/RegexMatchDebugVisualizer/RegexMatchDebugVisualizer/RegexMatchDebugVisualizer.csproj
index d12d6dec..0fd28e96 100644
--- a/New_Extensibility_Model/Samples/RegexMatchDebugVisualizer/RegexMatchDebugVisualizer/RegexMatchDebugVisualizer.csproj
+++ b/New_Extensibility_Model/Samples/RegexMatchDebugVisualizer/RegexMatchDebugVisualizer/RegexMatchDebugVisualizer.csproj
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/RustLanguageServerProvider/RustLanguageServerProvider.cs b/New_Extensibility_Model/Samples/RustLanguageServerProvider/RustLanguageServerProvider.cs
index d2b0301b..1005c0e9 100644
--- a/New_Extensibility_Model/Samples/RustLanguageServerProvider/RustLanguageServerProvider.cs
+++ b/New_Extensibility_Model/Samples/RustLanguageServerProvider/RustLanguageServerProvider.cs
@@ -16,8 +16,8 @@ namespace RustLanguageServerProviderExtension;
using Nerdbank.Streams;
///
+#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
{
///
@@ -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.
diff --git a/New_Extensibility_Model/Samples/RustLanguageServerProvider/RustLanguageServerProvider.csproj b/New_Extensibility_Model/Samples/RustLanguageServerProvider/RustLanguageServerProvider.csproj
index f1a7a77c..d3184163 100644
--- a/New_Extensibility_Model/Samples/RustLanguageServerProvider/RustLanguageServerProvider.csproj
+++ b/New_Extensibility_Model/Samples/RustLanguageServerProvider/RustLanguageServerProvider.csproj
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/SimpleRemoteCommandSample/SimpleRemoteCommandSample.csproj b/New_Extensibility_Model/Samples/SimpleRemoteCommandSample/SimpleRemoteCommandSample.csproj
index 7dada456..bf3d5b20 100644
--- a/New_Extensibility_Model/Samples/SimpleRemoteCommandSample/SimpleRemoteCommandSample.csproj
+++ b/New_Extensibility_Model/Samples/SimpleRemoteCommandSample/SimpleRemoteCommandSample.csproj
@@ -10,7 +10,7 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/ToolWindowSample/ToolWindowSample.csproj b/New_Extensibility_Model/Samples/ToolWindowSample/ToolWindowSample.csproj
index 1ebc8912..b8f253dc 100644
--- a/New_Extensibility_Model/Samples/ToolWindowSample/ToolWindowSample.csproj
+++ b/New_Extensibility_Model/Samples/ToolWindowSample/ToolWindowSample.csproj
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/UserPromptSample/UserPromptSample.csproj b/New_Extensibility_Model/Samples/UserPromptSample/UserPromptSample.csproj
index dad77203..621c06f3 100644
--- a/New_Extensibility_Model/Samples/UserPromptSample/UserPromptSample.csproj
+++ b/New_Extensibility_Model/Samples/UserPromptSample/UserPromptSample.csproj
@@ -11,7 +11,7 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/VSProjectQueryAPISample/VSProjectQueryAPISample.csproj b/New_Extensibility_Model/Samples/VSProjectQueryAPISample/VSProjectQueryAPISample.csproj
index cc3953ed..bf3ab425 100644
--- a/New_Extensibility_Model/Samples/VSProjectQueryAPISample/VSProjectQueryAPISample.csproj
+++ b/New_Extensibility_Model/Samples/VSProjectQueryAPISample/VSProjectQueryAPISample.csproj
@@ -11,7 +11,7 @@
-
-
+
+
diff --git a/New_Extensibility_Model/Samples/WordCountMargin/WordCountMarginSample.csproj b/New_Extensibility_Model/Samples/WordCountMargin/WordCountMarginSample.csproj
index c1995e64..776de901 100644
--- a/New_Extensibility_Model/Samples/WordCountMargin/WordCountMarginSample.csproj
+++ b/New_Extensibility_Model/Samples/WordCountMargin/WordCountMarginSample.csproj
@@ -10,8 +10,8 @@
-
-
+
+