diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 074ea5f..238a60f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,3 +18,8 @@ jobs: - run: npm run compile - run: npm run lint - run: npm run test + - name: Publish to Visual Studio Marketplace + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: stub + dryRun: true diff --git a/package-lock.json b/package-lock.json index 50678b6..454bde8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "devDependencies": { "@types/glob": "8.1.0", "@types/node": "20.11.30", - "@types/vscode": "1.87.0", + "@types/vscode": "1.37.0", "@typescript-eslint/eslint-plugin": "7.3.1", "@typescript-eslint/parser": "7.3.1", "eslint": "8.57.0", @@ -869,10 +869,11 @@ "dev": true }, "node_modules/@types/vscode": { - "version": "1.87.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.87.0.tgz", - "integrity": "sha512-y3yYJV2esWr8LNjp3VNbSMWG7Y43jC8pCldG8YwiHGAQbsymkkMMt0aDT1xZIOFM2eFcNiUc+dJMx1+Z0UT8fg==", - "dev": true + "version": "1.37.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.37.0.tgz", + "integrity": "sha512-PRfeuqYuzk3vjf+puzxltIUWC+AhEGYpFX29/37w30DQSQnpf5AgMVf7GDBAdmTbWTBou+EMFz/Ne6XCM/KxzQ==", + "dev": true, + "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "7.3.1", @@ -4724,9 +4725,9 @@ "dev": true }, "@types/vscode": { - "version": "1.87.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.87.0.tgz", - "integrity": "sha512-y3yYJV2esWr8LNjp3VNbSMWG7Y43jC8pCldG8YwiHGAQbsymkkMMt0aDT1xZIOFM2eFcNiUc+dJMx1+Z0UT8fg==", + "version": "1.37.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.37.0.tgz", + "integrity": "sha512-PRfeuqYuzk3vjf+puzxltIUWC+AhEGYpFX29/37w30DQSQnpf5AgMVf7GDBAdmTbWTBou+EMFz/Ne6XCM/KxzQ==", "dev": true }, "@typescript-eslint/eslint-plugin": { diff --git a/package.json b/package.json index d44c43e..d809926 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "devDependencies": { "@types/glob": "8.1.0", "@types/node": "20.11.30", - "@types/vscode": "1.87.0", + "@types/vscode": "1.37.0", "@typescript-eslint/eslint-plugin": "7.3.1", "@typescript-eslint/parser": "7.3.1", "eslint": "8.57.0", diff --git a/src/mocks/vscode.ts b/src/mocks/vscode.ts index 2815607..30c21c0 100644 --- a/src/mocks/vscode.ts +++ b/src/mocks/vscode.ts @@ -99,9 +99,9 @@ export namespace workspace { export const workspaceFolders = []; export function getConfiguration( - section?: string, scope?: vscode.ConfigurationScope) { + section?: string, resource?: vscode.Uri | null) { const funcName = "workspace.getConfiguration().inspect()"; - const path = (scope as {path?: string})?.path; + const path = (resource as {path?: string})?.path; if (mode == "mock") { return { @@ -110,7 +110,7 @@ export namespace workspace { } }; } else { - const result = vscode.workspace.getConfiguration(section, scope); + const result = vscode.workspace.getConfiguration(section, resource); const originalInspect = result.inspect;