Skip to content

Commit 805a330

Browse files
committed
fix: update vscode mock and snapshots for update_todo_list tool changes
- Add missing RelativePattern export to vscode mock - Fix onDidChangeWorkspaceFolders function in workspace mock - Update test snapshots to reflect new "complicated" text in update_todo_list tool documentation - Build tree-sitter WASM files to fix parsing tests Fixes failing CI tests related to PR #5926 documentation changes.
1 parent da59112 commit 805a330

15 files changed

+7662
-14
lines changed

package-lock.json

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

src/__mocks__/vscode.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ const mockSelection = class extends mockRange {
3939
export const workspace = {
4040
workspaceFolders: [],
4141
getWorkspaceFolder: () => null,
42-
onDidChangeWorkspaceFolders: () => mockDisposable,
42+
onDidChangeWorkspaceFolders: (callback) => {
43+
// Return a disposable that can be used to unsubscribe
44+
return mockDisposable
45+
},
4346
getConfiguration: () => ({
4447
get: () => null,
4548
}),
@@ -111,6 +114,12 @@ export const Range = mockRange
111114
export const Position = mockPosition
112115
export const Selection = mockSelection
113116
export const Disposable = mockDisposable
117+
export const RelativePattern = class {
118+
constructor(base, pattern) {
119+
this.base = base
120+
this.pattern = pattern
121+
}
122+
}
114123
export const ThemeIcon = class {
115124
constructor(id) {
116125
this.id = id
@@ -164,6 +173,7 @@ export default {
164173
Position,
165174
Selection,
166175
Disposable,
176+
RelativePattern,
167177
ThemeIcon,
168178
FileType,
169179
DiagnosticSeverity,

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/architect-mode-prompt.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/ask-mode-prompt.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-enabled.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/partial-reads-enabled.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/prompts/__tests__/__snapshots__/system-prompt/consistent-system-prompt.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/prompts/__tests__/__snapshots__/system-prompt/with-computer-use-support.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-false.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)