summaryrefslogtreecommitdiff
path: root/internal/lsp/ignore_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-16 03:51:43 +0200
committerPaul Buetow <paul@buetow.org>2026-03-16 03:51:43 +0200
commitde3e878ad12bbd3e609bd5b7d741fc792c72f255 (patch)
tree06d92b93ea0ad532c5d3a761033baac05abe2a5e /internal/lsp/ignore_test.go
parent2e9cabb1c8bf1f0246e513fe1f86a552e07eee94 (diff)
Decompose App God struct into embedded section structs
Replace 60+ flat fields in App with 4 embedded section structs: CoreConfig, ProviderConfig, PromptConfig, FeatureConfig. Go field promotion preserves all existing field access patterns. Updated flattenAppConfig to recurse into embedded structs for runtimeconfig. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/lsp/ignore_test.go')
-rw-r--r--internal/lsp/ignore_test.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/internal/lsp/ignore_test.go b/internal/lsp/ignore_test.go
index 7df7428..d7b6776 100644
--- a/internal/lsp/ignore_test.go
+++ b/internal/lsp/ignore_test.go
@@ -15,11 +15,13 @@ import (
// from the given gitRoot and extra patterns.
func newIgnoreTestServer(gitRoot string, useGI bool, extra []string, notifyIgnored *bool) *Server {
cfg := appconfig.App{
- IgnoreLSPNotify: notifyIgnored,
- InlineOpen: ">!",
- InlineClose: ">",
- ChatSuffix: ">",
- ChatPrefixes: []string{"?", "!", ":", ";"},
+ CoreConfig: appconfig.CoreConfig{
+ InlineOpen: ">!",
+ InlineClose: ">",
+ ChatSuffix: ">",
+ ChatPrefixes: []string{"?", "!", ":", ";"},
+ },
+ FeatureConfig: appconfig.FeatureConfig{IgnoreLSPNotify: notifyIgnored},
}
s := &Server{
logger: log.New(io.Discard, "", 0),