File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
module/PowerShellEditorServices
src/PowerShellEditorServices.Host Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ function Start-EditorServicesHost {
5252 [string ]
5353 $DebugServiceOnly ,
5454
55+ [string []]
56+ [ValidateNotNull ()]
57+ $FeatureFlags = @ (),
58+
5559 [switch ]
5660 $WaitForDebugger
5761 )
@@ -65,7 +69,8 @@ function Start-EditorServicesHost {
6569 $hostDetails ,
6670 $BundledModulesPath ,
6771 $EnableConsoleRepl.IsPresent ,
68- $WaitForDebugger.IsPresent )
72+ $WaitForDebugger.IsPresent ,
73+ $FeatureFlags )
6974
7075 # Build the profile paths using the root paths of the current $profile variable
7176 $profilePaths = New-Object Microsoft.PowerShell.EditorServices.Session.ProfilePaths @ (
Original file line number Diff line number Diff line change 88using Microsoft . PowerShell . EditorServices . Session ;
99using Microsoft . PowerShell . EditorServices . Utility ;
1010using System ;
11+ using System . Collections . Generic ;
1112using System . Diagnostics ;
1213using System . Reflection ;
1314using System . Threading ;
@@ -33,6 +34,7 @@ public class EditorServicesHost
3334 private HostDetails hostDetails ;
3435 private string bundledModulesPath ;
3536 private DebugAdapter debugAdapter ;
37+ private HashSet < string > featureFlags ;
3638 private LanguageServer languageServer ;
3739
3840 #endregion
@@ -60,13 +62,15 @@ public EditorServicesHost(
6062 HostDetails hostDetails ,
6163 string bundledModulesPath ,
6264 bool enableConsoleRepl ,
63- bool waitForDebugger )
65+ bool waitForDebugger ,
66+ string [ ] featureFlags )
6467 {
6568 Validate . IsNotNull ( nameof ( hostDetails ) , hostDetails ) ;
6669
6770 this . hostDetails = hostDetails ;
6871 this . enableConsoleRepl = enableConsoleRepl ;
6972 this . bundledModulesPath = bundledModulesPath ;
73+ this . featureFlags = new HashSet < string > ( featureFlags ?? new string [ 0 ] ) ;
7074
7175#if DEBUG
7276 int waitsRemaining = 10 ;
You can’t perform that action at this time.
0 commit comments