diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 129f9e1..a2da61f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -350,6 +350,19 @@ jobs: working-directory: extension run: npm install --no-audit --no-fund + - name: test_vscode_types_version_supported_by_engine + working-directory: extension + run: | + node <<'JS' + const assert = require('node:assert/strict'); + const pkg = require('./package.json'); + const version = value => value.replace(/^[~^]/, '').split('.').map(Number); + const engine = version(pkg.engines.vscode); + const types = version(pkg.devDependencies['@types/vscode']); + const difference = types.map((part, i) => part - engine[i]).find(part => part !== 0) || 0; + assert.ok(difference <= 0, '@types/vscode must not exceed engines.vscode'); + JS + - name: tsc --noEmit working-directory: extension run: npx tsc --noEmit -p ./ diff --git a/extension/package-lock.json b/extension/package-lock.json index 008cdee..44c4668 100644 --- a/extension/package-lock.json +++ b/extension/package-lock.json @@ -12,7 +12,7 @@ "@eslint/js": "^10.0.1", "@types/mocha": "^10.0.10", "@types/node": "^22.19.19", - "@types/vscode": "^1.134.0", + "@types/vscode": "^1.136.0", "@typescript-eslint/eslint-plugin": "^8.60.0", "@typescript-eslint/parser": "^8.68.0", "@vscode/test-cli": "^0.0.15", @@ -26,7 +26,7 @@ "typescript-eslint": "^8.70.0" }, "engines": { - "vscode": "^1.134.0" + "vscode": "^1.136.0" } }, "node_modules/@azu/format-text": { @@ -1412,9 +1412,9 @@ "license": "MIT" }, "node_modules/@types/vscode": { - "version": "1.134.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.134.0.tgz", - "integrity": "sha512-NDEu0hg4sF7+vvFsADsktqUJ6f80LHSZvVK2Ovo1XiQ0/VHck1O3zst+ZZyVA/uvz6vo6LcuoqU2q48YMqOwWw==", + "version": "1.136.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.136.0.tgz", + "integrity": "sha512-DO746VAfnHk8+Y8CsUKYMm2rjWD0mxEuYBZI+ssaqJY7yvLJPf9lcwxSSz9W60gbdvdcGyvHQxHTyByfF9mVqg==", "dev": true, "license": "MIT" }, diff --git a/extension/package.json b/extension/package.json index a4f7467..9652c12 100644 --- a/extension/package.json +++ b/extension/package.json @@ -21,7 +21,7 @@ "homepage": "https://mboworks.github.io/coderef/", "bugs": "https://github.com/mboworks/coderef/issues", "engines": { - "vscode": "^1.134.0" + "vscode": "^1.136.0" }, "categories": ["Linters", "Other"], "activationEvents": [ @@ -178,7 +178,7 @@ "@eslint/js": "^10.0.1", "@types/mocha": "^10.0.10", "@types/node": "^22.19.19", - "@types/vscode": "^1.134.0", + "@types/vscode": "^1.136.0", "@typescript-eslint/eslint-plugin": "^8.60.0", "@typescript-eslint/parser": "^8.68.0", "@vscode/test-cli": "^0.0.15",