File tree 2 files changed +6
-1
lines changed
src/PowerShellEditorServices/Server
test/PowerShellEditorServices.Test.E2E
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,11 @@ public async Task StartAsync()
141
141
JObject initializationOptions = initializeParams . InitializationOptions as JObject ;
142
142
HostStartOptions hostStartOptions = new ( )
143
143
{
144
- LoadProfiles = initializationOptions ? . GetValue ( "EnableProfileLoading" ) ? . Value < bool > ( ) ?? false ,
144
+ // TODO: We need to synchronize our "default" settings as specified
145
+ // in the VS Code extension's package.json with the actual default
146
+ // values in this project. For now, this is going to be the most
147
+ // annoying setting, so we're defaulting this to true.
148
+ LoadProfiles = initializationOptions ? . GetValue ( "EnableProfileLoading" ) ? . Value < bool > ( ) ?? true ,
145
149
// TODO: Consider deprecating the setting which sets this and
146
150
// instead use WorkspacePath exclusively.
147
151
InitialWorkingDirectory = initializationOptions ? . GetValue ( "InitialWorkingDirectory" ) ? . Value < string > ( ) ?? workspaceService . WorkspacePath
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ public async Task InitializeAsync()
57
57
. WithInput ( _psesProcess . OutputStream )
58
58
. WithOutput ( _psesProcess . InputStream )
59
59
. WithRootUri ( DocumentUri . FromFileSystemPath ( testdir . FullName ) )
60
+ . WithInitializationOptions ( new { EnableProfileLoading = false } )
60
61
. OnPublishDiagnostics ( diagnosticParams => Diagnostics . AddRange ( diagnosticParams . Diagnostics . Where ( d => d != null ) ) )
61
62
. OnLogMessage ( logMessageParams => Output ? . WriteLine ( $ "{ logMessageParams . Type } : { logMessageParams . Message } ") )
62
63
. OnTelemetryEvent ( telemetryEventParams => TelemetryEvents . Add (
You can’t perform that action at this time.
0 commit comments