From ff0a9b25f82ff000ca06b19b9da447344bddfd9d Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Wed, 11 Sep 2024 10:33:16 +0300 Subject: [PATCH] New template for VSCode SQL Formatter bug report --- .github/ISSUE_TEMPLATE/vscode-bug-report.md | 33 -------- .../ISSUE_TEMPLATE/vscode-prettier-sql.yml | 2 +- .../ISSUE_TEMPLATE/vscode-sql-formatter.yml | 78 +++++++++++++++++++ 3 files changed, 79 insertions(+), 34 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/vscode-bug-report.md create mode 100644 .github/ISSUE_TEMPLATE/vscode-sql-formatter.yml diff --git a/.github/ISSUE_TEMPLATE/vscode-bug-report.md b/.github/ISSUE_TEMPLATE/vscode-bug-report.md deleted file mode 100644 index 01bae1350e..0000000000 --- a/.github/ISSUE_TEMPLATE/vscode-bug-report.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -name: VSCode Bug Report -about: Raise an issue with the VSCode Extension -title: '[VSCODE] Issue Title Here' -labels: vscode -assignees: '' ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: - -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Usage** - -- What SQL language(s) does this apply to? (Plese check the bottom right of your editor for the current VSCode language type) -- What VSCode version are you using? -- What are your currently configured VSCode settings for the SQL Formatter VSCode extension, if relevant to the issue? - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/vscode-prettier-sql.yml b/.github/ISSUE_TEMPLATE/vscode-prettier-sql.yml index 501620853d..fe3f5a57ac 100644 --- a/.github/ISSUE_TEMPLATE/vscode-prettier-sql.yml +++ b/.github/ISSUE_TEMPLATE/vscode-prettier-sql.yml @@ -1,5 +1,5 @@ name: VSCode Prettier SQL extension bug report -description: I have a problem with the VSCode Prettier SQL extension. +description: I have a problem with the Prettier SQL VSCode extension. title: 'Problem with outdated Prettier SQL extension' labels: ['vscode'] body: diff --git a/.github/ISSUE_TEMPLATE/vscode-sql-formatter.yml b/.github/ISSUE_TEMPLATE/vscode-sql-formatter.yml new file mode 100644 index 0000000000..7d527226e7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/vscode-sql-formatter.yml @@ -0,0 +1,78 @@ +name: VSCode SQL Formatter extension bug report +about: I have a problem with the SQL Formatter VSCode extension +title: '' +labels: vscode +body: + - type: textarea + id: problem + attributes: + label: Describe your problem + validations: + required: true + - type: dropdown + id: dialect + attributes: + label: Which SQL dialect does this apply to? + multiple: true + options: + - Google BigQuery + - IBM DB2 for LUW (Linux, Unix, Windows) + - IBM DB2 for iSystem + - Apache Hive + - MariaDB + - MySQL + - Couchbase N1QL + - Oracle PL/SQL + - PostgreSQL + - Amazon Redshift + - SingleStoreDB + - Snowflake + - Spark + - SQLite + - TiDB + - Trino + - Presto + - Microsoft SQL Server Transact-SQL + - A dialect not supported by SQL Formatter + validations: + required: true + - type: dropdown + id: configured_dialect + attributes: + label: Which SQL dialect is configured in your VSCode extension settings? + description: Go to Settings -> SQL Formatter VSCode -> dialect. + options: + - Rely on VSCode to detect the relevant SQL dialect + - Google BigQuery + - IBM DB2 for LUW (Linux, Unix, Windows) + - IBM DB2 for iSystem + - Apache Hive + - MariaDB + - MySQL + - Couchbase N1QL + - Oracle PL/SQL + - PostgreSQL + - Amazon Redshift + - SingleStoreDB + - Snowflake + - Spark + - SQLite + - TiDB + - Trino (should also work for Presto) + - Microsoft SQL Server Transact-SQL + - Basic SQL - generally not recommended + validations: + required: true + - type: input + id: version + attributes: + label: Version of the VSCode extension + validations: + required: true + - type: checkboxes + id: repoduces + attributes: + label: I have tried to reproduce this issue on the [demo page](https://sql-formatter-org.github.io/sql-formatter/), and it + items: + - label: Reproduces + - label: Does not reproduce