Skip to content

Commit

Permalink
Declare dependency on VSCode v1.52.0 (#1188)
Browse files Browse the repository at this point in the history
* Declare dependency on VSCode v1.52.0

* Make linter happy
  • Loading branch information
anthony-c-martin authored Dec 18, 2020
1 parent bacb1a9 commit 0b7427f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ updates:
# we're deliberately taking a dependency on an older version of vscode for back-compatibility
- dependency-name: "@types/vscode"
versions:
- ">1.14.0"
- ">1.52.0"
- package-ecosystem: "npm"
directory: "/src/playground"
schedule:
Expand Down
6 changes: 3 additions & 3 deletions src/vscode-bicep/package-lock.json

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

4 changes: 2 additions & 2 deletions src/vscode-bicep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": true,
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"engines": {
"vscode": "^1.14.0"
"vscode": "^1.52.0"
},
"categories": [
"Azure",
Expand Down Expand Up @@ -96,7 +96,7 @@
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.14",
"@types/triple-beam": "^1.3.2",
"@types/vscode": "^1.14.0",
"@types/vscode": "^1.52.0",
"@types/webpack": "^4.41.25",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
Expand Down
15 changes: 10 additions & 5 deletions src/vscode-bicep/src/test/unit/logger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,21 @@ const mockWinstonLogger = ({
log: jest.fn(),
} as unknown) as winston.Logger;

const mockState: vscode.Memento = { get: jest.fn(), update: jest.fn() };
const mockContext: vscode.ExtensionContext = {
const mockWorkspaceState: vscode.Memento = {
get: jest.fn(),
update: jest.fn(),
};
const mockGlobalstate = { ...mockWorkspaceState, setKeysForSync: jest.fn() };
const mockContext = ({
subscriptions: [],
workspaceState: mockState,
globalState: mockState,
workspaceState: mockWorkspaceState,
globalState: mockGlobalstate,
asAbsolutePath: jest.fn(),
extensionPath: "",
storagePath: "",
logPath: "",
};
} as unknown) as vscode.ExtensionContext;

const mockOutputChannel: vscode.OutputChannel = {
name: "",
append: jest.fn(),
Expand Down

0 comments on commit 0b7427f

Please sign in to comment.