Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions resources/issueReport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Describe the bug

## Expected Behavior
<!--- What should happen -->

## Current Behavior
<!--- What happens instead of the expected behavior -->

## Steps to Reproduce
<!--- What steps can be done to reproduce -->
1.
2.
3.

## Environment
9 changes: 8 additions & 1 deletion src/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
} from 'vscode';

import * as path from 'path';
import * as fs from 'fs';
import { Platform } from './util/platform';

import { WatchUtil, FileContentChangeNotifier } from './util/watch';
Expand Down Expand Up @@ -253,7 +254,13 @@ export class OpenShiftExplorer implements TreeDataProvider<ExplorerItem>, Dispos

@vsCommand('openshift.explorer.reportIssue')
static async reportIssue(): Promise<unknown> {
return commands.executeCommand('vscode.open', Uri.parse(OpenShiftExplorer.issueUrl()));
const extensionPath = path.resolve(__dirname, '..', '..');
const templatePath = path.join(extensionPath,'resources', 'issueReport.md');
const template = fs.readFileSync(templatePath, 'utf-8');
return commands.executeCommand('workbench.action.openIssueReporter', {
extensionId: 'redhat.vscode-openshift-connector',
issueBody: template
});
}

@vsCommand('openshift.open.configFile')
Expand Down