File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
src/PowerShellEditorServices/Server Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 44//
55
66using System ;
7- using System . Collections . Generic ;
8- using System . Management . Automation . Host ;
97using Microsoft . Extensions . DependencyInjection ;
108using Microsoft . Extensions . Logging ;
119using Microsoft . PowerShell . EditorServices . Hosting ;
1210using Microsoft . PowerShell . EditorServices . Services ;
11+ using OmniSharp . Extensions . LanguageServer . Protocol . Models ;
1312
1413namespace Microsoft . PowerShell . EditorServices . Server
1514{
@@ -43,7 +42,23 @@ public static IServiceCollection AddPsesLanguageServices(
4342 . Wait ( ) ;
4443 return extensionService ;
4544 } )
46- . AddSingleton < AnalysisService > ( ) ;
45+ . AddSingleton < AnalysisService > ( )
46+ // NOTE: See `LanguageServerSettingsWrapper`
47+ . AddSingleton (
48+ new ConfigurationItem
49+ {
50+ Section = "powershell" ,
51+ } )
52+ . AddSingleton (
53+ new ConfigurationItem
54+ {
55+ Section = "files" ,
56+ } )
57+ . AddSingleton (
58+ new ConfigurationItem
59+ {
60+ Section = "search" ,
61+ } ) ;
4762 }
4863
4964 public static IServiceCollection AddPsesDebugServices (
You can’t perform that action at this time.
0 commit comments