Skip to content

Commit 0b7427f

Browse files
Declare dependency on VSCode v1.52.0 (#1188)
* Declare dependency on VSCode v1.52.0 * Make linter happy
1 parent bacb1a9 commit 0b7427f

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ updates:
1717
# we're deliberately taking a dependency on an older version of vscode for back-compatibility
1818
- dependency-name: "@types/vscode"
1919
versions:
20-
- ">1.14.0"
20+
- ">1.52.0"
2121
- package-ecosystem: "npm"
2222
directory: "/src/playground"
2323
schedule:

src/vscode-bicep/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vscode-bicep/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"preview": true,
1111
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
1212
"engines": {
13-
"vscode": "^1.14.0"
13+
"vscode": "^1.52.0"
1414
},
1515
"categories": [
1616
"Azure",
@@ -96,7 +96,7 @@
9696
"@types/mocha": "^8.2.0",
9797
"@types/node": "^14.14.14",
9898
"@types/triple-beam": "^1.3.2",
99-
"@types/vscode": "^1.14.0",
99+
"@types/vscode": "^1.52.0",
100100
"@types/webpack": "^4.41.25",
101101
"@typescript-eslint/eslint-plugin": "^4.10.0",
102102
"@typescript-eslint/parser": "^4.10.0",

src/vscode-bicep/src/test/unit/logger.test.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,21 @@ const mockWinstonLogger = ({
2525
log: jest.fn(),
2626
} as unknown) as winston.Logger;
2727

28-
const mockState: vscode.Memento = { get: jest.fn(), update: jest.fn() };
29-
const mockContext: vscode.ExtensionContext = {
28+
const mockWorkspaceState: vscode.Memento = {
29+
get: jest.fn(),
30+
update: jest.fn(),
31+
};
32+
const mockGlobalstate = { ...mockWorkspaceState, setKeysForSync: jest.fn() };
33+
const mockContext = ({
3034
subscriptions: [],
31-
workspaceState: mockState,
32-
globalState: mockState,
35+
workspaceState: mockWorkspaceState,
36+
globalState: mockGlobalstate,
3337
asAbsolutePath: jest.fn(),
3438
extensionPath: "",
3539
storagePath: "",
3640
logPath: "",
37-
};
41+
} as unknown) as vscode.ExtensionContext;
42+
3843
const mockOutputChannel: vscode.OutputChannel = {
3944
name: "",
4045
append: jest.fn(),

0 commit comments

Comments
 (0)