-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathClaudeCodeModels.cs
More file actions
176 lines (154 loc) · 6.11 KB
/
ClaudeCodeModels.cs
File metadata and controls
176 lines (154 loc) · 6.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/* *******************************************************************************************************************
* Application: ClaudeCodeExtension
*
* Autor: Daniel Carvalho Liedke
*
* Copyright © Daniel Carvalho Liedke 2026
* Usage and reproduction in any manner whatsoever without the written permission of Daniel Carvalho Liedke is strictly forbidden.
*
* Purpose: Data models and enums for Claude Code extension
*
* *******************************************************************************************************************/
namespace ClaudeCodeVS
{
/// <summary>
/// AI Provider types supported by the extension
/// </summary>
public enum AiProvider
{
ClaudeCode,
ClaudeCodeWSL,
Codex,
CodexNative,
CursorAgent,
CursorAgentNative,
QwenCode,
OpenCode
}
/// <summary>
/// Claude model types for Claude Code and Claude Code WSL
/// </summary>
public enum ClaudeModel
{
Opus,
Sonnet,
Haiku
}
/// <summary>
/// Effort levels for Claude Code reasoning
/// </summary>
public enum EffortLevel
{
Auto,
Low,
Medium,
High,
Max
}
/// <summary>
/// Terminal emulator type for the embedded terminal
/// </summary>
public enum TerminalType
{
/// <summary>
/// Windows built-in Command Prompt (conhost.exe)
/// </summary>
CommandPrompt,
/// <summary>
/// Windows Terminal (modern terminal with better emoji/unicode support)
/// </summary>
WindowsTerminal
}
/// <summary>
/// Represents a single prompt history entry with optional file attachments
/// </summary>
public class PromptHistoryEntry
{
/// <summary>
/// The prompt text
/// </summary>
public string Text { get; set; } = string.Empty;
/// <summary>
/// File paths that were attached when the prompt was sent
/// </summary>
public System.Collections.Generic.List<string> FilePaths { get; set; } = new System.Collections.Generic.List<string>();
}
/// <summary>
/// Settings configuration for Claude Code extension
/// </summary>
public class ClaudeCodeSettings
{
/// <summary>
/// Captures any unknown JSON properties so that older DLL versions
/// do not silently discard settings added by newer versions.
/// </summary>
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, Newtonsoft.Json.Linq.JToken> AdditionalData { get; set; }
/// <summary>
/// If true, Enter key sends the prompt (Shift+Enter for newline)
/// If false, Enter key creates newline (button click sends prompt)
/// </summary>
public bool SendWithEnter { get; set; } = true;
/// <summary>
/// Saved position of the grid splitter (in pixels)
/// </summary>
public double SplitterPosition { get; set; } = 236.0; // Default pixel height for first row
/// <summary>
/// Currently selected AI provider
/// </summary>
public AiProvider SelectedProvider { get; set; } = AiProvider.ClaudeCode;
/// <summary>
/// Currently selected Claude model (for Claude Code and Claude Code WSL providers)
/// </summary>
public ClaudeModel SelectedClaudeModel { get; set; } = ClaudeModel.Sonnet;
/// <summary>
/// List of previously sent prompts with optional file attachments (most recent last)
/// </summary>
public System.Collections.Generic.List<PromptHistoryEntry> PromptHistory { get; set; } = new System.Collections.Generic.List<PromptHistoryEntry>();
/// <summary>
/// If true, automatically opens the Changes view, expands files, and enables auto-scroll when a prompt is sent
/// Only applies when the project is in a git repository
/// </summary>
public bool AutoOpenChangesOnPrompt { get; set; } = false;
/// <summary>
/// If true, starts Claude Code with the --dangerously-skip-permissions parameter
/// Applies to Claude Code (Windows) and Claude Code (WSL)
/// </summary>
public bool ClaudeDangerouslySkipPermissions { get; set; } = false;
/// <summary>
/// Legacy compatibility toggle for Codex startup automation.
/// If true, starts Codex with --ask-for-approval never.
/// Applies to Codex (Windows native) and Codex (WSL).
/// </summary>
public bool CodexFullAuto { get; set; } = false;
/// <summary>
/// Currently selected effort level for Claude Code
/// </summary>
public EffortLevel SelectedEffortLevel { get; set; } = EffortLevel.Auto;
/// <summary>
/// Custom working directory for the terminal.
/// Can be an absolute path or a path relative to the solution directory.
/// When empty or null, the default solution/project directory is used.
/// </summary>
public string CustomWorkingDirectory { get; set; } = "";
/// <summary>
/// Terminal emulator to use (Command Prompt or Windows Terminal)
/// Defaults to Command Prompt for compatibility
/// </summary>
public TerminalType SelectedTerminalType { get; set; } = TerminalType.CommandPrompt;
/// <summary>
/// Whether the terminal is currently detached into a separate tool window tab
/// </summary>
public bool IsTerminalDetached { get; set; } = false;
/// <summary>
/// Font size for the prompt text box (in WPF device-independent units, range 8–24).
/// 0 means "use VS default" (not yet changed by user).
/// </summary>
public double PromptFontSize { get; set; } = 0.0;
/// <summary>
/// Net zoom delta applied by the user to the embedded terminal via Ctrl+Scroll.
/// Positive = zoomed in, negative = zoomed out. Replayed on each terminal restart.
/// </summary>
public int TerminalZoomDelta { get; set; } = 0;
}
}