Skip to content

Commit

Permalink
Suppress the Report Issue button forever (#3147)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored Aug 16, 2021
1 parent 19b56c5 commit 3d98cbd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/commands/registerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ import { logOutOfDockerCli } from "./registries/logOutOfDockerCli";
import { pullImageFromRepository, pullRepository } from "./registries/pullImages";
import { reconnectRegistry } from "./registries/reconnectRegistry";
import { registryHelp } from "./registries/registryHelp";
import { reportIssue } from "./reportIssue";
import { openStartPage } from "./startPage/openStartPage";
import { configureVolumesExplorer } from "./volumes/configureVolumesExplorer";
import { inspectVolume } from "./volumes/inspectVolume";
Expand Down Expand Up @@ -203,6 +202,5 @@ export function registerCommands(): void {
registerLocalCommand('vscode-docker.installDocker', installDocker);

registerCommand('vscode-docker.help', help);
registerCommand('vscode-docker.help.reportIssue', reportIssue);
registerCommand('vscode-docker.help.openStartPage', openStartPage);
}
11 changes: 0 additions & 11 deletions src/commands/reportIssue.ts

This file was deleted.

7 changes: 6 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as fse from 'fs-extra';
import * as os from 'os';
import * as path from 'path';
import * as vscode from 'vscode';
import { callWithTelemetryAndErrorHandling, createAzExtOutputChannel, createExperimentationService, IActionContext, registerUIExtensionVariables } from 'vscode-azureextensionui';
import { callWithTelemetryAndErrorHandling, createAzExtOutputChannel, createExperimentationService, IActionContext, registerErrorHandler, registerReportIssueCommand, registerUIExtensionVariables } from 'vscode-azureextensionui';
import { ConfigurationParams, DidChangeConfigurationNotification, DocumentSelector, LanguageClient, LanguageClientOptions, Middleware, ServerOptions, TransportKind } from 'vscode-languageclient/node';
import * as tas from 'vscode-tas-client';
import { registerCommands } from './commands/registerCommands';
Expand Down Expand Up @@ -82,6 +82,11 @@ export async function activateInternal(ctx: vscode.ExtensionContext, perfStats:
// Temporarily disabled--reenable if we need to do any surveys
// (new SurveyManager()).activate();

// Remove the "Report Issue" button from all error messages in favor of the command
// TODO: use built-in issue reporter if/when support is added to include arbitrary info in addition to repro steps (which we would leave blank to force the user to type *something*)
registerErrorHandler(ctx => ctx.errorHandling.suppressReportIssue = true);
registerReportIssueCommand('vscode-docker.help.reportIssue');

ctx.subscriptions.push(
vscode.languages.registerCompletionItemProvider(
DOCUMENT_SELECTOR,
Expand Down

0 comments on commit 3d98cbd

Please sign in to comment.