File tree 2 files changed +11
-2
lines changed
module/PowerShellEditorServices
src/PowerShellEditorServices.Host
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ function Start-EditorServicesHost {
52
52
[string ]
53
53
$DebugServiceOnly ,
54
54
55
+ [string []]
56
+ [ValidateNotNull ()]
57
+ $FeatureFlags = @ (),
58
+
55
59
[switch ]
56
60
$WaitForDebugger
57
61
)
@@ -65,7 +69,8 @@ function Start-EditorServicesHost {
65
69
$hostDetails ,
66
70
$BundledModulesPath ,
67
71
$EnableConsoleRepl.IsPresent ,
68
- $WaitForDebugger.IsPresent )
72
+ $WaitForDebugger.IsPresent ,
73
+ $FeatureFlags )
69
74
70
75
# Build the profile paths using the root paths of the current $profile variable
71
76
$profilePaths = New-Object Microsoft.PowerShell.EditorServices.Session.ProfilePaths @ (
Original file line number Diff line number Diff line change 8
8
using Microsoft . PowerShell . EditorServices . Session ;
9
9
using Microsoft . PowerShell . EditorServices . Utility ;
10
10
using System ;
11
+ using System . Collections . Generic ;
11
12
using System . Diagnostics ;
12
13
using System . Reflection ;
13
14
using System . Threading ;
@@ -33,6 +34,7 @@ public class EditorServicesHost
33
34
private HostDetails hostDetails ;
34
35
private string bundledModulesPath ;
35
36
private DebugAdapter debugAdapter ;
37
+ private HashSet < string > featureFlags ;
36
38
private LanguageServer languageServer ;
37
39
38
40
#endregion
@@ -60,13 +62,15 @@ public EditorServicesHost(
60
62
HostDetails hostDetails ,
61
63
string bundledModulesPath ,
62
64
bool enableConsoleRepl ,
63
- bool waitForDebugger )
65
+ bool waitForDebugger ,
66
+ string [ ] featureFlags )
64
67
{
65
68
Validate . IsNotNull ( nameof ( hostDetails ) , hostDetails ) ;
66
69
67
70
this . hostDetails = hostDetails ;
68
71
this . enableConsoleRepl = enableConsoleRepl ;
69
72
this . bundledModulesPath = bundledModulesPath ;
73
+ this . featureFlags = new HashSet < string > ( featureFlags ?? new string [ 0 ] ) ;
70
74
71
75
#if DEBUG
72
76
int waitsRemaining = 10 ;
You can’t perform that action at this time.
0 commit comments