diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4e85a9a..9170145 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,6 @@ on: types: [created] jobs: - release: runs-on: ubuntu-latest steps: @@ -15,6 +14,13 @@ jobs: node-version: 18 - run: npm install - run: npm run vscode:prepublish - - run: npm run deploy + - name: Runs on Pre-Release + if: 'github.event.prerelease' + run: npm run deploy-pre-release + env: + VSCE_PAT: ${{ secrets.VSCE_TOKEN }} + - name: Runs on Release + if: '!github.event.prerelease' + run: npm run deploy env: VSCE_PAT: ${{ secrets.VSCE_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index b178dca..739fb20 100644 --- a/package.json +++ b/package.json @@ -191,7 +191,7 @@ ] }, "scripts": { - "vscode:prepublish": "npm run esbuild-base -- --minify", + "vscode:prepublish": "npm run esbuild -- --minify", "esbuild": "node esbuild", "esbuild-watch": "node esbuild --watch", "lint": "eslint src --ext ts", diff --git a/src/clients/lsp.ts b/src/clients/lsp.ts index fe0594d..d325ae2 100644 --- a/src/clients/lsp.ts +++ b/src/clients/lsp.ts @@ -369,7 +369,7 @@ export default class LspClient { const parsingError = "Error parsing the statements."; console.error("[LSP]", (err && (err as any).message)); if (parsingError === (err instanceof Error && err.message)) { - throw new ExtensionError(Errors.parsingFailure, "Syntax errors are present. For more information, please refer to the \"Problems\" tab."); + throw new ExtensionError(Errors.parsingFailure, "Syntax errors present in your query."); } else { console.warn("[LSP]", "Using alternative parser, an error raised using the LSP: ", err); try {