2 instantiations of LanguageServerEndpoint
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
Handlers\InitializedHandler.cs (1)
14
[
LanguageServerEndpoint
("initialized", LanguageServerConstants.DefaultLanguageName)]
Handlers\InitializeHandler.cs (1)
13
[
LanguageServerEndpoint
("initialize", LanguageServerConstants.DefaultLanguageName)]
9 references to LanguageServerEndpoint
Microsoft.CommonLanguageServerProtocol.Framework.Package (9)
LanguageServerConstants.cs (1)
13
/// Default language name for use with <see cref="
LanguageServerEndpointAttribute
"/> and <see cref="AbstractHandlerProvider.GetMethodHandler"/>.
MethodHandlerDetails.cs (8)
103
var
methodAttribute = GetMethodAttributeFromClassOrInterface(handlerType);
110
throw new InvalidOperationException($"{handlerType.FullName} is missing {nameof(
LanguageServerEndpointAttribute
)}");
116
static
LanguageServerEndpointAttribute
? GetMethodAttributeFromHandlerMethod(Type handlerType, Type? requestType, Type contextType, Type? responseType)
126
return methodInfo.GetCustomAttribute<
LanguageServerEndpointAttribute
>();
178
static
LanguageServerEndpointAttribute
? GetMethodAttributeFromClassOrInterface(Type type)
180
var
attribute = Attribute.GetCustomAttribute(type, typeof(
LanguageServerEndpointAttribute
)) as
LanguageServerEndpointAttribute
;