Skip to content

Commit

Permalink
Update gallery extension samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Prosperi committed Nov 20, 2023
1 parent f240730 commit 38f37db
Show file tree
Hide file tree
Showing 30 changed files with 85 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galerie funkcí VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "VisualStudio.Extensibility-Funktionsgalerie"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galería de funciones de VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galerie de fonctionnalités VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Raccolta di funzionalità di VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "VisualStudio.Extensibility 機能ギャラリー"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "VisualStudio.Extensibility 기능 갤러리"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galeria funkcji VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galeria de recursos do VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Галерея функций VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "VisualStudio.Extensibility özellik galerisi"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "VisualStudio.Extensibility 功能库"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "VisualStudio.Extensibility 功能庫"
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public EditorMarginTest(VisualStudioExtensibility extensibility)
public override string ButtonText => "Editor margin";

[DataMember]
public override string Description => $"This command opens a text document with a custom editor margin counting the words in the document. A prompt will ask to close the file.";
public override string Description => $"This command opens a text document with a custom editor margin, in the bottom-right corner, counting the words in the document. A prompt will ask to close the file.";

protected override async Task RunAsync(IClientContext clientContext, CancellationToken cancellationToken)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private async Task VerifyDocumentAsync(Uri uri, string text)
List<Diagnostic> diagnostics = new();

using StringReader reader = new(text);
string line;
string? line;
for (int lineCounter = 0;
(line = await reader.ReadLineAsync()) != null;
lineCounter++)
Expand All @@ -81,7 +81,7 @@ private async Task VerifyDocumentAsync(Uri uri, string text)

diagnostics.Add(new()
{
Severity = DiagnosticSeverity.Error,
Severity = DiagnosticSeverity.Warning,
Code = "TODO",
#if INPROC
Source = "In-proc TODO Language Server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public LanguageServerTest(VisualStudioExtensibility extensibility)
public override string ButtonText => "Language Server";

[DataMember]
public override string Description => $"This command opens a new file, warning diagnostics will be generated for each line containing `TODO:`. A prompt will ask to close the file.";
public override string Description => $"This command opens a new file, green squiggles (warning diagnostics) will be generated for each line containing `TODO:`. A prompt will ask to close the file.";

protected override async Task RunAsync(IClientContext clientContext, CancellationToken cancellationToken)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ public MainToolWindowCommand()
}

/// <inheritdoc />
public override CommandConfiguration CommandConfiguration => new(
public override CommandConfiguration CommandConfiguration =>
#if INPROC
"%InProcFeatureGallery.MainToolWindowCommand.DisplayName%"
new("%InProcFeatureGallery.MainToolWindowCommand.DisplayName%")
#else
"%FeatureGallery.MainToolWindowCommand.DisplayName%"
new("%FeatureGallery.MainToolWindowCommand.DisplayName%")
#endif
)
{
Placements = new[] { CommandPlacement.KnownPlacements.ExtensionsMenu },
Icon = new(ImageMoniker.KnownValues.Extension, IconSettings.IconAndText),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Průběžná galerie funkcí VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "In-Process-VisualStudio.Extensibility-Funktionsgalerie"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galería de funciones de VisualStudio.Extensibility en proceso"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galerie de fonctionnalités VisualStudio.Extensibility en cours"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Raccolta di funzionalità di VisualStudio.Extensibility in-process"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "インプロセス VisualStudio.Extensibility 機能ギャラリー"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "진행 중인 VisualStudio.Extensibility 기능 갤러리"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galeria funkcji programu VisualStudio.Extensibility w procesie"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Galeria de recursos do VisualStudio.Extensibility em processo"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Галерея встроенных функций VisualStudio.Extensibility"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "Süreç içi VisualStudio.Extensibility özellik galerisi"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "进程内 VisualStudio.Extensibility 功能库"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"FeatureGallery.MainToolWindowCommand.DisplayName": "進程內 VisualStudio.Extensibility 功能庫"
}

0 comments on commit 38f37db

Please sign in to comment.