Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove report issue feature #422

Merged
merged 2 commits into from
Mar 23, 2020
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ Please see below for the best place to ask a query:
- How do I? -- [Stack Overflow](https://stackoverflow.com/questions/ask?tags=getgauge)
- I got this error, why? -- [Stack Overflow](https://stackoverflow.com/questions/ask?tags=getgauge)
- I got this error and I'm sure it's a bug -- file an [issue](https://github.com/getgauge/gauge-vscode/issues)
You can also easily report issues from VSCode itself by executing command `Gauge: Report Issue` from the command pallete
- I have an idea/request -- file an [issue](https://github.com/getgauge/gauge-vscode/issues)
- Why do you? -- [Google Groups](https://groups.google.com/forum/#!forum/getgauge)
- When will you? -- [Google Groups](https://groups.google.com/forum/#!forum/getgauge)
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
],
"activationEvents": [
"onCommand:gauge.createProject",
"onCommand:gauge.help.reportIssue",
"workspaceContains:manifest.json",
"onLanguage:gauge"
],
Expand Down Expand Up @@ -126,11 +125,6 @@
"title": "Run Scenarios",
"category": "Gauge"
},
{
"command": "gauge.help.reportIssue",
"title": "Report Issue",
"category": "Gauge"
},
{
"command": "gauge.showReferences.atCursor",
"title": "Find Step References",
Expand Down
3 changes: 1 addition & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export enum GaugeVSCodeCommands {
GenerateConceptStub = 'gauge.generate.concept',
ShowReferences = 'gauge.showReferences',
ShowReferencesAtCursor = 'gauge.showReferences.atCursor',
ReportIssue = 'gauge.help.reportIssue',
Open = 'gauge.open',
RepeatExecution = 'gauge.execute.repeat',
SwitchProject = 'gauge.specexplorer.switchProject',
Expand Down Expand Up @@ -85,4 +84,4 @@ export const GAUGE_MANIFEST_FILE = 'manifest.json';
export const MAVEN_POM = "pom.xml";
export const MAVEN_COMMAND = "mvn";
export const GRADLE_COMMAND = "./gradlew";
export const GRADLE_BUILD = 'build.gradle';
export const GRADLE_BUILD = 'build.gradle';
28 changes: 0 additions & 28 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ export async function activate(context: ExtensionContext) {
return;
}
let folders = workspace.workspaceFolders;
context.subscriptions.push(
new ProjectInitializer(cli),
commands.registerCommand(GaugeVSCodeCommands.ReportIssue, () => {
reportIssue(cli);
})
);
let hasGaugeProject = folders && folders.some((f) => ProjectFactory.isGaugeProject(f.uri.fsPath));
if (!hasActiveGaugeDocument(window.activeTextEditor) && !hasGaugeProject) return;
if (!cli.isGaugeInstalled() || !cli.isGaugeVersionGreaterOrEqual(MINIMUM_SUPPORTED_GAUGE_VERSION)) {
Expand All @@ -46,25 +40,3 @@ export async function activate(context: ExtensionContext) {
new ConfigProvider(context)
);
}

function reportIssue(cli: CLI) {
let extVersion = extensions.getExtension("getgauge.gauge").packageJSON.version;
let gaugeVersionInfo = "";
if (cli.isGaugeInstalled()) {
gaugeVersionInfo = cli.gaugeVersionString();
} else {
gaugeVersionInfo = "Gauge executable not found!!";
}
let issueTemplate = `\`\`\`
VS-Code version: ${version}
Gauge Extension Version: ${extVersion}

${gaugeVersionInfo}
\`\`\``;

return env.openExternal(
Uri.parse(encodeURI(`https://github.com/getgauge/gauge-vscode/issues/new?body=${escape(issueTemplate)}`))).then(
() => { }, (err) => {
window.showErrorMessage("Can't open issue URL. " + err);
});
}