-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConstants.cs
More file actions
32 lines (24 loc) · 1.25 KB
/
Constants.cs
File metadata and controls
32 lines (24 loc) · 1.25 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
using System.IO;
namespace Cycode.VisualStudio.Extension.Shared;
public static class Constants {
public const string AppName = "visual_studio_extension";
public const string RequiredCliVersion = "3.12.0";
public const string CycodeDomain = "cycode.com";
public const string CliGithubOrg = "cycodehq";
public const string CliGithubRepo = "cycode-cli";
public const string CliGithubTag = "v" + RequiredCliVersion;
public const int CliCheckNewVersionEverySec = 24 * 60 * 60; // 24 hours
public const string CliExecutableAssetName = "cycode-win.exe";
public const string CliExecutableShaAssetName = $"{CliExecutableAssetName}.sha256";
public const int PluginAutoSaveFlushInitialDelaySec = 0;
public const int PluginAutoSaveFlushDelaySec = 5;
public static readonly string PluginPath = GetPluginsPath();
public static readonly string DefaultCliPath = GetDefaultCliPath();
private static string GetPluginsPath() {
string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
return Path.Combine(appDataPath, "Cycode", "VisualStudioExtension");
}
private static string GetDefaultCliPath() {
return Path.Combine(GetPluginsPath(), "cycode-cli.exe");
}
}