This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VS extension accessibility improvements (#658)
* replace Hyperlinks with Buttons * set automation names on results window items * select first report when results window appears * Set focus to the browse button after options browse dialog is dismissed * bind control styles to VS environment colors * Add status bar to VS extension for screen reader support (#627)
- Loading branch information
Showing
14 changed files
with
196 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/ApiPort/ApiPort.VisualStudio.Common/Resources/LocalizedStrings.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 10 additions & 26 deletions
36
src/ApiPort/ApiPort.VisualStudio/Resources/ResourceDictionary.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/ApiPort/ApiPort.VisualStudio/StatusBarProgressReporter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System.IO; | ||
using ApiPortVS.Resources; | ||
using Microsoft.Fx.Portability; | ||
using Microsoft.VisualStudio.Shell.Interop; | ||
|
||
namespace ApiPortVS | ||
{ | ||
public class StatusBarProgressReporter : TextWriterProgressReporter | ||
{ | ||
private readonly IVsStatusbar _statusBar; | ||
|
||
public StatusBarProgressReporter(TextWriter writer, IVsStatusbar statusBar) | ||
: base(writer) | ||
{ | ||
_statusBar = statusBar; | ||
} | ||
|
||
public override IProgressTask StartTask(string taskName, int total) | ||
{ | ||
return new StatusBarProgressTask(Writer, taskName, _statusBar); | ||
} | ||
|
||
public override IProgressTask StartTask(string taskName) | ||
{ | ||
return new StatusBarProgressTask(Writer, taskName, _statusBar); | ||
} | ||
|
||
private class StatusBarProgressTask : TextWriterProgressTask | ||
{ | ||
private readonly IVsStatusbar _statusBar; | ||
|
||
public StatusBarProgressTask(TextWriter writer, string task, IVsStatusbar statusBar) | ||
: base(writer, task) | ||
{ | ||
_statusBar = statusBar; | ||
|
||
_statusBar.SetText(task); | ||
} | ||
|
||
public override void Abort() | ||
{ | ||
base.Abort(); | ||
_statusBar.SetText(LocalizedStrings.AnalysisFailed); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.