Skip to content

Commit

Permalink
Merge pull request #103 from augustocdias/fix_deploy
Browse files Browse the repository at this point in the history
Fix deployment
  • Loading branch information
MarcelRobitaille authored Sep 24, 2024
2 parents e8ebf40 + 4b23695 commit ce8b920
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/mocks/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;

Expand Down

0 comments on commit ce8b920

Please sign in to comment.