Skip to content

Commit 9229ca5

Browse files
committed
fix: remove unrelated mock changes from PR
1 parent 0842a38 commit 9229ca5

File tree

3 files changed

+1
-34
lines changed

3 files changed

+1
-34
lines changed

src/__mocks__/vscode.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,10 @@ const mockSelection = class extends mockRange {
3636
}
3737
}
3838

39-
const mockRelativePattern = class {
40-
constructor(base, pattern) {
41-
this.base = base
42-
this.pattern = pattern
43-
}
44-
}
45-
4639
export const workspace = {
4740
workspaceFolders: [],
4841
getWorkspaceFolder: () => null,
49-
onDidChangeWorkspaceFolders: (callback) => mockDisposable,
42+
onDidChangeWorkspaceFolders: () => mockDisposable,
5043
getConfiguration: () => ({
5144
get: () => null,
5245
}),
@@ -118,7 +111,6 @@ export const Range = mockRange
118111
export const Position = mockPosition
119112
export const Selection = mockSelection
120113
export const Disposable = mockDisposable
121-
export const RelativePattern = mockRelativePattern
122114
export const ThemeIcon = class {
123115
constructor(id) {
124116
this.id = id
@@ -172,7 +164,6 @@ export default {
172164
Position,
173165
Selection,
174166
Disposable,
175-
RelativePattern,
176167
ThemeIcon,
177168
FileType,
178169
DiagnosticSeverity,

src/core/task/__tests__/Task.spec.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,6 @@ vi.mock("vscode", () => {
8686
QuickFix: { value: "quickfix" },
8787
RefactorRewrite: { value: "refactor.rewrite" },
8888
},
89-
Uri: {
90-
file: (path: string) => ({ fsPath: path, path, scheme: "file" }),
91-
parse: (path: string) => ({ fsPath: path, path, scheme: "file" }),
92-
},
93-
RelativePattern: class {
94-
base: any
95-
pattern: string
96-
constructor(base: any, pattern: string) {
97-
this.base = base
98-
this.pattern = pattern
99-
}
100-
},
10189
window: {
10290
createTextEditorDecorationType: vi.fn().mockReturnValue({
10391
dispose: vi.fn(),

src/services/mcp/__tests__/McpHub.spec.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,6 @@ vi.mock("vscode", () => ({
6565
Disposable: {
6666
from: vi.fn(),
6767
},
68-
Uri: {
69-
file: (path: string) => ({ fsPath: path, path, scheme: "file" }),
70-
parse: (path: string) => ({ fsPath: path, path, scheme: "file" }),
71-
},
72-
RelativePattern: class {
73-
base: any
74-
pattern: string
75-
constructor(base: any, pattern: string) {
76-
this.base = base
77-
this.pattern = pattern
78-
}
79-
},
8068
}))
8169
vi.mock("fs/promises")
8270
vi.mock("../../../core/webview/ClineProvider")

0 commit comments

Comments
 (0)