Skip to content

Commit

Permalink
⬆️ Update to latest VSCode dependencies
Browse files Browse the repository at this point in the history
Requires VSCode 1.95+ and Node 20+ (due to @vscode/vsce)
  • Loading branch information
ouvreboite committed Nov 26, 2024
1 parent ab67552 commit a12d039
Show file tree
Hide file tree
Showing 5 changed files with 595 additions and 232 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Spectral is a flexible object linter with out of the box support for [OpenAPI](h

## Requirements

- Node.js ^12.21 or >=14.13
- Visual Studio Code version 1.48 or higher.
- Node.js >= 20
- Visual Studio Code version 1.95 or higher.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "JSON/YAML linter with OpenAPI and custom ruleset support.",
"displayName": "Spectral",
"engines": {
"vscode": "^1.48.0",
"vscode": "^1.95.0",
"node": "^12.20 || >=14.13"
},
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions client/src/__tests__/e2e/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import { runTests, downloadAndUnzipVSCode } from 'vscode-test';
import { runTests, downloadAndUnzipVSCode } from '@vscode/test-electron';
import { randomBytes } from 'crypto';

// The folder containing the Extension Manifest package.json
Expand Down Expand Up @@ -45,7 +45,7 @@ interface TestCase {
];

try {
const vscodeExecutablePath = await downloadAndUnzipVSCode('1.48.0');
const vscodeExecutablePath = await downloadAndUnzipVSCode('1.95.0');

for (const tc of testCases) {
console.info(`Using VSCode from '${vscodeExecutablePath}'`,);
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "^18.11.18",
"@types/vscode": "^1.48.0",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.1.0",
"chai": "^4.2.0",
Expand All @@ -102,8 +102,8 @@
"ts-loader": "^9.5.1",
"ts-node": "^8.10.2",
"typescript": "beta",
"vsce": "^1.103.1",
"vscode-test": "^1.5.0",
"@vscode/vsce": "^2.32.0",
"@vscode/test-electron": "^2.4.1",
"webpack": "^5.96.1",
"webpack-cli": "^4.9.2"
},
Expand All @@ -112,7 +112,7 @@
},
"displayName": "Spectral",
"engines": {
"vscode": "^1.48.0",
"vscode": "^1.95.0",
"node": "^12.20 || >= 14.13"
},
"homepage": "https://github.com/stoplightio/vscode-spectral",
Expand Down Expand Up @@ -150,7 +150,7 @@
"test": "mocha -r ts-node/register \"./+(client|server)/__tests__/unit/**/*.test.ts\"",
"test:e2e": "cross-env CI=true CHAI_JEST_SNAPSHOT_UPDATE_ALL=false ts-node ./client/src/__tests__/e2e/index.ts"
},
"version": "1.1.4",
"version": "1.1.1732551058-dev.1",
"workspaces": {
"packages": [
"client",
Expand Down
Loading

0 comments on commit a12d039

Please sign in to comment.