-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServerOptionsPage.cs
More file actions
31 lines (26 loc) · 903 Bytes
/
ServerOptionsPage.cs
File metadata and controls
31 lines (26 loc) · 903 Bytes
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
using System.ComponentModel;
using Microsoft.VisualStudio.Shell;
namespace VSCommandServer;
public class ServerOptionsPage : DialogPage
{
[Category("Startup")]
[DisplayName("Auto Start")]
[Description("Automatically start the server when the extension is loaded.")]
[DefaultValue(true)]
public bool AutoStart { get; set; } = true;
[Category("Startup")]
[DisplayName("Auto Start Delay (ms)")]
[Description("The delay in milliseconds before auto-starting the server.")]
[DefaultValue(1000)]
public int AutoStartDelay { get; set; } = 1000;
[Category("Server")]
[DisplayName("Default Port")]
[Description("The default port for the server.")]
[DefaultValue(3000)]
public int DefaultPort { get; set; } = 3000;
[Category("Server")]
[DisplayName("Max Retries")]
[Description("Number of retry attempts to find an open port.")]
[DefaultValue(3)]
public int MaxRetries { get; set; } = 3;
}