Skip to content

Commit 6795b25

Browse files
committed
revert: remove unrelated changes to src/__mocks__/vscode.js
1 parent 03186f8 commit 6795b25

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/__mocks__/vscode.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ const mockSelection = class extends mockRange {
3939
export const workspace = {
4040
workspaceFolders: [],
4141
getWorkspaceFolder: () => null,
42-
onDidChangeWorkspaceFolders: (callback) => {
43-
// Return a disposable that can be used to unsubscribe
44-
return mockDisposable
45-
},
42+
onDidChangeWorkspaceFolders: () => mockDisposable,
4643
getConfiguration: () => ({
4744
get: () => null,
4845
}),
@@ -114,12 +111,6 @@ export const Range = mockRange
114111
export const Position = mockPosition
115112
export const Selection = mockSelection
116113
export const Disposable = mockDisposable
117-
export const RelativePattern = class {
118-
constructor(base, pattern) {
119-
this.base = base
120-
this.pattern = pattern
121-
}
122-
}
123114
export const ThemeIcon = class {
124115
constructor(id) {
125116
this.id = id
@@ -173,7 +164,6 @@ export default {
173164
Position,
174165
Selection,
175166
Disposable,
176-
RelativePattern,
177167
ThemeIcon,
178168
FileType,
179169
DiagnosticSeverity,

0 commit comments

Comments
 (0)