File tree 1 file changed +1
-23
lines changed
1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -74,29 +74,7 @@ public static ILanguageServer PreInit(Action<LanguageServerOptions> optionsActio
74
74
75
75
public static async Task < ILanguageServer > From ( LanguageServerOptions options , CancellationToken token )
76
76
{
77
- var server = new LanguageServer (
78
- options . Input ,
79
- options . Output ,
80
- options . Reciever ,
81
- options . RequestProcessIdentifier ,
82
- options . LoggerFactory ,
83
- options . Serializer ,
84
- options . Services ,
85
- options . HandlerTypes . Select ( x => x . Assembly )
86
- . Distinct ( ) . Concat ( options . HandlerAssemblies ) ,
87
- options . Handlers ,
88
- options . HandlerTypes ,
89
- options . NamedHandlers ,
90
- options . NamedServiceHandlers ,
91
- options . TextDocumentIdentifiers ,
92
- options . TextDocumentIdentifierTypes ,
93
- options . InitializeDelegates ,
94
- options . InitializedDelegates
95
- ) ;
96
-
97
- if ( options . AddDefaultLoggingProvider )
98
- options . LoggerFactory . AddProvider ( new LanguageServerLoggerProvider ( server ) ) ;
99
-
77
+ var server = ( LanguageServer ) PreInit ( options ) ;
100
78
await server . Initialize ( token ) ;
101
79
102
80
return server ;
You can’t perform that action at this time.
0 commit comments