@@ -7,46 +7,46 @@ namespace Microsoft.NodejsTools
77{
88 internal static class NodejsConstants
99 {
10- internal const string JavaScriptExtension = ".js" ;
11- internal const string JavaScriptJsxExtension = ".jsx" ;
12- internal const string TypeScriptExtension = ".ts" ;
13- internal const string TypeScriptJsxExtension = ".tsx" ;
14- internal const string TypeScriptDeclarationExtension = ".d.ts" ;
15- internal const string MapExtension = ".map" ;
16- internal const string NodejsProjectExtension = ".njsproj" ;
17-
18- internal const string JavaScript = "JavaScript" ;
19- internal const string CSS = "CSS" ;
20- internal const string HTML = "HTML" ;
21- internal const string Nodejs = "Node.js" ;
22-
23- internal const string ProjectFileFilter = "Node.js Project File (*.njsproj)\n *.njsproj\n All Files (*.*)\n *.*\n " ;
24-
25- internal const string NodeModulesFolder = "node_modules" ;
26- internal const string NodeModulesFolderWithSeparators = "\\ " + NodeModulesFolder + "\\ " ;
27- internal const string NodeModulesStagingFolder = "node_modules\\ .staging\\ " ;
28- internal const string BowerComponentsFolder = "bower_components" ;
10+ public const string JavaScriptExtension = ".js" ;
11+ public const string JavaScriptJsxExtension = ".jsx" ;
12+ public const string TypeScriptExtension = ".ts" ;
13+ public const string TypeScriptJsxExtension = ".tsx" ;
14+ public const string TypeScriptDeclarationExtension = ".d.ts" ;
15+ public const string MapExtension = ".map" ;
16+ public const string NodejsProjectExtension = ".njsproj" ;
17+
18+ public const string JavaScript = "JavaScript" ;
19+ public const string CSS = "CSS" ;
20+ public const string HTML = "HTML" ;
21+ public const string Nodejs = "Node.js" ;
22+
23+ public const string ProjectFileFilter = "Node.js Project File (*.njsproj)\n *.njsproj\n All Files (*.*)\n *.*\n " ;
24+
25+ public const string NodeModulesFolder = "node_modules" ;
26+ public const string NodeModulesFolderWithSeparators = "\\ " + NodeModulesFolder + "\\ " ;
27+ public const string NodeModulesStagingFolder = "node_modules\\ .staging\\ " ;
28+ public const string BowerComponentsFolder = "bower_components" ;
2929
3030 /// <summary>
3131 /// The name of the package.json file
3232 /// </summary>
33- internal const string PackageJsonFile = "package.json" ;
34- internal const string PackageJsonMainFileKey = "main" ;
35- internal const string DefaultPackageMainFile = "index.js" ;
33+ public const string PackageJsonFile = "package.json" ;
34+ public const string PackageJsonMainFileKey = "main" ;
35+ public const string DefaultPackageMainFile = "index.js" ;
3636
37- internal const string TsConfigJsonFile = "tsconfig.json" ;
38- internal const string JsConfigJsonFile = "jsconfig.json" ;
37+ public const string TsConfigJsonFile = "tsconfig.json" ;
38+ public const string JsConfigJsonFile = "jsconfig.json" ;
3939
40- internal const string BaseRegistryKey = "NodejsTools" ;
40+ public const string BaseRegistryKey = "NodejsTools" ;
4141
42- internal const ushort DefaultDebuggerPort = 5858 ;
42+ public const ushort DefaultDebuggerPort = 5858 ;
4343
44- internal const string TypeScriptCompileItemType = "TypeScriptCompile" ;
45- internal const string CommonJSModuleKind = "CommonJS" ;
46- internal const string TypeScript = "TypeScript" ;
44+ public const string TypeScriptCompileItemType = "TypeScriptCompile" ;
45+ public const string CommonJSModuleKind = "CommonJS" ;
46+ public const string TypeScript = "TypeScript" ;
4747
48- internal const string NodeToolsProcessIdEnvironmentVariable = "_NTVS_PID" ;
49- internal const string NodeToolsVsInstallRootEnvironmentVariable = "_NTVS_VSINSTALLROOT" ;
48+ public const string NodeToolsProcessIdEnvironmentVariable = "_NTVS_PID" ;
49+ public const string NodeToolsVsInstallRootEnvironmentVariable = "_NTVS_VSINSTALLROOT" ;
5050
5151 public static string NtvsLocalAppData => Path . Combine (
5252 System . Environment . GetFolderPath ( System . Environment . SpecialFolder . LocalApplicationData ) ,
@@ -65,30 +65,35 @@ internal static class NodejsConstants
6565 /// <summary>
6666 /// Checks whether a relative and double-backslashed seperated path contains a folder name.
6767 /// </summary>
68- internal static bool ContainsNodeModulesOrBowerComponentsFolder ( string path )
68+ public static bool ContainsNodeModulesOrBowerComponentsFolder ( string path )
6969 {
7070 var tmp = "\\ " + path + "\\ " ;
7171 return tmp . IndexOf ( "\\ " + NodeModulesFolder + "\\ " , StringComparison . OrdinalIgnoreCase ) >= 0
7272 || tmp . IndexOf ( "\\ " + BowerComponentsFolder + "\\ " , StringComparison . OrdinalIgnoreCase ) >= 0 ;
7373 }
74+
75+ public const string ExecutorUriString = "executor://NodejsTestExecutor/v1" ;
76+ public static readonly Uri ExecutorUri = new Uri ( ExecutorUriString ) ;
7477 }
7578
7679 internal static class NodeProjectProperty
7780 {
78- internal const string DebuggerPort = "DebuggerPort" ;
79- internal const string EnableTypeScript = "EnableTypeScript" ;
80- internal const string Environment = "Environment" ;
81- internal const string EnvironmentVariables = "EnvironmentVariables" ;
82- internal const string LaunchUrl = "LaunchUrl" ;
83- internal const string NodeExeArguments = "NodeExeArguments" ;
84- internal const string NodeExePath = "NodeExePath" ;
85- internal const string NodejsPort = "NodejsPort" ;
86- internal const string ScriptArguments = "ScriptArguments" ;
87- internal const string StartWebBrowser = "StartWebBrowser" ;
88- internal const string TypeScriptCfgProperty = "CfgPropertyPagesGuidsAddTypeScript" ;
89- internal const string TypeScriptModuleKind = "TypeScriptModuleKind" ;
90- internal const string TypeScriptOutDir = "TypeScriptOutDir" ;
91- internal const string TypeScriptSourceMap = "TypeScriptSourceMap" ;
92- internal const string SaveNodeJsSettingsInProjectFile = "SaveNodeJsSettingsInProjectFile" ;
81+ public const string DebuggerPort = "DebuggerPort" ;
82+ public const string EnableTypeScript = "EnableTypeScript" ;
83+ public const string Environment = "Environment" ;
84+ public const string EnvironmentVariables = "EnvironmentVariables" ;
85+ public const string LaunchUrl = "LaunchUrl" ;
86+ public const string NodeExeArguments = "NodeExeArguments" ;
87+ public const string NodeExePath = "NodeExePath" ;
88+ public const string NodejsPort = "NodejsPort" ;
89+ public const string ScriptArguments = "ScriptArguments" ;
90+ public const string StartWebBrowser = "StartWebBrowser" ;
91+ public const string TypeScriptCfgProperty = "CfgPropertyPagesGuidsAddTypeScript" ;
92+ public const string TypeScriptModuleKind = "TypeScriptModuleKind" ;
93+ public const string TypeScriptOutDir = "TypeScriptOutDir" ;
94+ public const string TypeScriptSourceMap = "TypeScriptSourceMap" ;
95+ public const string SaveNodeJsSettingsInProjectFile = "SaveNodeJsSettingsInProjectFile" ;
96+ public const string TestRoot = "TestRoot" ;
97+ public const string TestFramework = "TestFramework" ;
9398 }
9499}
0 commit comments