File tree 1 file changed +18
-3
lines changed
src/PowerShellEditorServices/Server
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 4
4
//
5
5
6
6
using System ;
7
- using System . Collections . Generic ;
8
- using System . Management . Automation . Host ;
9
7
using Microsoft . Extensions . DependencyInjection ;
10
8
using Microsoft . Extensions . Logging ;
11
9
using Microsoft . PowerShell . EditorServices . Hosting ;
12
10
using Microsoft . PowerShell . EditorServices . Services ;
11
+ using OmniSharp . Extensions . LanguageServer . Protocol . Models ;
13
12
14
13
namespace Microsoft . PowerShell . EditorServices . Server
15
14
{
@@ -43,7 +42,23 @@ public static IServiceCollection AddPsesLanguageServices(
43
42
. Wait ( ) ;
44
43
return extensionService ;
45
44
} )
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
+ } ) ;
47
62
}
48
63
49
64
public static IServiceCollection AddPsesDebugServices (
You can’t perform that action at this time.
0 commit comments