Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit efeff6f

Browse files
feat: add PartialClaudeCodeConfig type for better configuration handling
Change-Id: I7e94c9ebbace3654b1f1cfad8b0e3f3899c786cb Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent fbe5b80 commit efeff6f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

‎dev-config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ return {
4040
},
4141

4242
-- Development configuration - all options shown with defaults commented out
43-
---@type ClaudeCodeConfig
43+
---@type PartialClaudeCodeConfig
4444
opts = {
4545
-- Server Configuration
4646
-- port_range = { min = 10000, max = 65535 }, -- WebSocket server port range

‎lua/claudecode/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function M.send_at_mention(file_path, start_line, end_line, context)
287287
end
288288

289289
---Set up the plugin with user configuration
290-
---@param opts ClaudeCodeConfig|nil Optional configuration table to override defaults.
290+
---@param opts PartialClaudeCodeConfig|nil Optional configuration table to override defaults.
291291
---@return table module The plugin module
292292
function M.setup(opts)
293293
opts = opts or {}

‎lua/claudecode/types.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
---@field enable_broadcast_debouncing_in_tests? boolean
108108
---@field terminal ClaudeCodeTerminalConfig?
109109

110+
---@class (partial) PartialClaudeCodeConfig: ClaudeCodeConfig
111+
110112
-- Server interface for main module
111113
---@class ClaudeCodeServerFacade
112114
---@field start fun(config: ClaudeCodeConfig, auth_token: string|nil): (success: boolean, port_or_error: number|string)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /