Skip to content

Commit

Permalink
Implement troubleshoot issue (#184901)
Browse files Browse the repository at this point in the history
* implement troubleshoot issue action

* move issue troubleshooting to a service

* feedback

* fix stable check
  • Loading branch information
sandy081 committed Jun 12, 2023
1 parent 17c88bf commit 46041c9
Show file tree
Hide file tree
Showing 7 changed files with 410 additions and 21 deletions.
4 changes: 4 additions & 0 deletions build/lib/i18n.resources.json
Expand Up @@ -521,6 +521,10 @@
{
"name": "vs/workbench/contrib/accessibility",
"project": "vscode-workbench"
},
{
"name": "vs/workbench/services/issue",
"project": "vscode-workbench"
}
]
}
Expand Up @@ -185,11 +185,11 @@ class ExtensionBisectUi {
private _showBisectPrompt(): void {

const goodPrompt: IPromptChoice = {
label: 'Good Now',
label: localize('I cannot reproduce', "I can't reproduce"),
run: () => this._commandService.executeCommand('extension.bisect.next', false)
};
const badPrompt: IPromptChoice = {
label: 'This is Bad',
label: localize('This is Bad', "I can reproduce"),
run: () => this._commandService.executeCommand('extension.bisect.next', true)
};
const stop: IPromptChoice = {
Expand Down Expand Up @@ -329,11 +329,11 @@ registerAction2(class extends Action2 {
detail: localize('bisect', "Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.", bisectService.disabledCount),
buttons: [
{
label: localize({ key: 'next.good', comment: ['&& denotes a mnemonic'] }, "&&Good now"),
label: localize({ key: 'next.good', comment: ['&& denotes a mnemonic'] }, "I ca&&n't reproduce"),
run: () => false // good now
},
{
label: localize({ key: 'next.bad', comment: ['&& denotes a mnemonic'] }, "This is &&bad"),
label: localize({ key: 'next.bad', comment: ['&& denotes a mnemonic'] }, "I can &&reproduce"),
run: () => true // bad
},
{
Expand Down

0 comments on commit 46041c9

Please sign in to comment.