Skip to content

Commit e638a56

Browse files
committed
Change Variable name to a better camel-case format.
1 parent 7592f4f commit e638a56

30 files changed

+66
-66
lines changed

evals/packages/types/src/roo-code-defaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const rooCodeDefaults: RooCodeSettings = {
88

99
pinnedApiConfigs: {},
1010

11-
markdownBlockLineheight: 1.25,
11+
markdownBlockLineHeight: 1.25,
1212
autoApprovalEnabled: true,
1313
alwaysAllowReadOnly: true,
1414
alwaysAllowReadOnlyOutsideWorkspace: false,

evals/packages/types/src/roo-code.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ export const globalSettingsSchema = z.object({
731731
customInstructions: z.string().optional(),
732732
taskHistory: z.array(historyItemSchema).optional(),
733733

734-
markdownBlockLineheight: z.number().optional(),
734+
markdownBlockLineHeight: z.number().optional(),
735735
autoApprovalEnabled: z.boolean().optional(),
736736
alwaysAllowReadOnly: z.boolean().optional(),
737737
alwaysAllowReadOnlyOutsideWorkspace: z.boolean().optional(),
@@ -811,7 +811,7 @@ const globalSettingsRecord: GlobalSettingsRecord = {
811811
customInstructions: undefined,
812812
taskHistory: undefined,
813813

814-
markdownBlockLineheight: undefined,
814+
markdownBlockLineHeight: undefined,
815815
autoApprovalEnabled: undefined,
816816
alwaysAllowReadOnly: undefined,
817817
alwaysAllowReadOnlyOutsideWorkspace: undefined,

src/core/webview/ClineProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
12681268
maxReadFileLine,
12691269
terminalCompressProgressBar,
12701270
historyPreviewCollapsed,
1271-
markdownBlockLineheight,
1271+
markdownBlockLineHeight,
12721272
} = await this.getState()
12731273

12741274
const telemetryKey = process.env.POSTHOG_API_KEY
@@ -1357,7 +1357,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
13571357
terminalCompressProgressBar: terminalCompressProgressBar ?? true,
13581358
hasSystemPromptOverride,
13591359
historyPreviewCollapsed: historyPreviewCollapsed ?? false,
1360-
markdownBlockLineheight: markdownBlockLineheight ?? 1.25,
1360+
markdownBlockLineHeight: markdownBlockLineHeight ?? 1.25,
13611361
}
13621362
}
13631363

@@ -1448,7 +1448,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
14481448
showRooIgnoredFiles: stateValues.showRooIgnoredFiles ?? true,
14491449
maxReadFileLine: stateValues.maxReadFileLine ?? 500,
14501450
historyPreviewCollapsed: stateValues.historyPreviewCollapsed ?? false,
1451-
markdownBlockLineheight: stateValues.markdownBlockLineheight ?? 1.25,
1451+
markdownBlockLineHeight: stateValues.markdownBlockLineHeight ?? 1.25,
14521452
}
14531453
}
14541454

src/core/webview/webviewMessageHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,8 @@ export const webviewMessageHandler = async (provider: ClineProvider, message: We
894894
await updateGlobalState("maxReadFileLine", message.value)
895895
await provider.postStateToWebview()
896896
break
897-
case "markdownBlockLineheight":
898-
await updateGlobalState("markdownBlockLineheight", message.value ?? 1.25)
897+
case "markdownBlockLineHeight":
898+
await updateGlobalState("markdownBlockLineHeight", message.value ?? 1.25)
899899
await provider.postStateToWebview()
900900
break
901901
case "setHistoryPreviewCollapsed": // Add the new case handler

src/exports/roo-code.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type GlobalSettings = {
5656
workspace?: string | undefined
5757
}[]
5858
| undefined
59-
markdownBlockLineheight: number | undefined
59+
markdownBlockLineHeight?: number | undefined
6060
autoApprovalEnabled?: boolean | undefined
6161
alwaysAllowReadOnly?: boolean | undefined
6262
alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined

src/exports/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type GlobalSettings = {
5656
workspace?: string | undefined
5757
}[]
5858
| undefined
59-
markdownBlockLineheight?: number | undefined
59+
markdownBlockLineHeight?: number | undefined
6060
autoApprovalEnabled?: boolean | undefined
6161
alwaysAllowReadOnly?: boolean | undefined
6262
alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined

src/schemas/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ export const globalSettingsSchema = z.object({
735735
customInstructions: z.string().optional(),
736736
taskHistory: z.array(historyItemSchema).optional(),
737737

738-
markdownBlockLineheight: z.number().optional(),
738+
markdownBlockLineHeight: z.number().optional(),
739739
autoApprovalEnabled: z.boolean().optional(),
740740
alwaysAllowReadOnly: z.boolean().optional(),
741741
alwaysAllowReadOnlyOutsideWorkspace: z.boolean().optional(),
@@ -816,7 +816,7 @@ const globalSettingsRecord: GlobalSettingsRecord = {
816816
customInstructions: undefined,
817817
taskHistory: undefined,
818818

819-
markdownBlockLineheight: undefined,
819+
markdownBlockLineHeight: undefined,
820820
autoApprovalEnabled: undefined,
821821
alwaysAllowReadOnly: undefined,
822822
alwaysAllowReadOnlyOutsideWorkspace: undefined,

src/shared/ExtensionMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface ExtensionMessage {
7070
| "commandExecutionStatus"
7171
| "vsCodeSetting"
7272
| "condenseTaskContextResponse"
73-
| "markdownBlockLineheight"
73+
| "markdownBlockLineHeight"
7474
text?: string
7575
action?:
7676
| "chatButtonClicked"
@@ -171,7 +171,7 @@ export type ExtensionState = Pick<
171171
| "customModePrompts"
172172
| "customSupportPrompts"
173173
| "enhancementApiConfigId"
174-
| "markdownBlockLineheight"
174+
| "markdownBlockLineHeight"
175175
> & {
176176
version: string
177177
clineMessages: ClineMessage[]

src/shared/WebviewMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export interface WebviewMessage {
132132
| "toggleApiConfigPin"
133133
| "setHistoryPreviewCollapsed"
134134
| "condenseTaskContextRequest"
135-
| "markdownBlockLineheight"
135+
| "markdownBlockLineHeight"
136136
text?: string
137137
disabled?: boolean
138138
askResponse?: ClineAskResponse

webview-ui/src/components/common/MarkdownBlock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const StyledMarkdown = styled.div<{ lineheight: number | string }>`
122122
`
123123

124124
const MarkdownBlock = memo(({ markdown }: MarkdownBlockProps) => {
125-
const { theme, markdownBlockLineheight } = useExtensionState()
125+
const { theme, markdownBlockLineHeight } = useExtensionState()
126126
const [reactContent, setMarkdown] = useRemark({
127127
remarkPlugins: [
128128
remarkUrlToLink,
@@ -229,7 +229,7 @@ const MarkdownBlock = memo(({ markdown }: MarkdownBlockProps) => {
229229

230230
return (
231231
<div style={{}}>
232-
<StyledMarkdown lineheight={markdownBlockLineheight || 1.25}>{reactContent}</StyledMarkdown>
232+
<StyledMarkdown lineheight={markdownBlockLineHeight || 1.25}>{reactContent}</StyledMarkdown>
233233
</div>
234234
)
235235
})

0 commit comments

Comments
 (0)