mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Merge pull request #186 from RooVetGit/default_diff_editing_to_on
Default diff editing to on for new installs
This commit is contained in:
5
.changeset/ninety-stingrays-give.md
Normal file
5
.changeset/ninety-stingrays-give.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"roo-cline": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Default diff editing to on for new installs
|
||||||
@@ -972,7 +972,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||||||
.filter((item) => item.ts && item.task)
|
.filter((item) => item.ts && item.task)
|
||||||
.sort((a, b) => b.ts - a.ts),
|
.sort((a, b) => b.ts - a.ts),
|
||||||
soundEnabled: soundEnabled ?? false,
|
soundEnabled: soundEnabled ?? false,
|
||||||
diffEnabled: diffEnabled ?? false,
|
diffEnabled: diffEnabled ?? true,
|
||||||
shouldShowAnnouncement: lastShownAnnouncementId !== this.latestAnnouncementId,
|
shouldShowAnnouncement: lastShownAnnouncementId !== this.latestAnnouncementId,
|
||||||
allowedCommands,
|
allowedCommands,
|
||||||
soundVolume: soundVolume ?? 0.5,
|
soundVolume: soundVolume ?? 0.5,
|
||||||
@@ -1166,7 +1166,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||||||
taskHistory,
|
taskHistory,
|
||||||
allowedCommands,
|
allowedCommands,
|
||||||
soundEnabled: soundEnabled ?? false,
|
soundEnabled: soundEnabled ?? false,
|
||||||
diffEnabled: diffEnabled ?? false,
|
diffEnabled: diffEnabled ?? true,
|
||||||
soundVolume,
|
soundVolume,
|
||||||
browserLargeViewport: browserLargeViewport ?? false,
|
browserLargeViewport: browserLargeViewport ?? false,
|
||||||
fuzzyMatchThreshold: fuzzyMatchThreshold ?? 1.0,
|
fuzzyMatchThreshold: fuzzyMatchThreshold ?? 1.0,
|
||||||
|
|||||||
@@ -300,6 +300,15 @@ describe('ClineProvider', () => {
|
|||||||
expect(state).toHaveProperty('diffEnabled')
|
expect(state).toHaveProperty('diffEnabled')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test('diffEnabled defaults to true when not set', async () => {
|
||||||
|
// Mock globalState.get to return undefined for diffEnabled
|
||||||
|
(mockContext.globalState.get as jest.Mock).mockReturnValue(undefined)
|
||||||
|
|
||||||
|
const state = await provider.getState()
|
||||||
|
|
||||||
|
expect(state.diffEnabled).toBe(true)
|
||||||
|
})
|
||||||
|
|
||||||
test('updates sound utility when sound setting changes', async () => {
|
test('updates sound utility when sound setting changes', async () => {
|
||||||
provider.resolveWebviewView(mockWebviewView)
|
provider.resolveWebviewView(mockWebviewView)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user