Langium - v4.0.0
Preparing search index...
langium/lsp
createRequestHandler
Function createRequestHandler
createRequestHandler
<
P
extends
{
textDocument
:
TextDocumentIdentifier
}
,
R
,
E
=
void
,
>
(
serviceCall
:
(
services
:
LangiumCoreAndPartialLSPServices
,
document
:
LangiumDocument
,
params
:
P
,
cancelToken
:
Cancellation
.
CancellationToken
,
)
=>
HandlerResult
<
R
,
E
>
,
sharedServices
:
LangiumSharedServices
,
targetState
?:
DocumentState
,
)
:
RequestHandler
<
P
,
null
|
R
,
E
>
Type Parameters
P
extends
{
textDocument
:
TextDocumentIdentifier
}
R
E
=
void
Parameters
serviceCall
:
(
services
:
LangiumCoreAndPartialLSPServices
,
document
:
LangiumDocument
,
params
:
P
,
cancelToken
:
Cancellation
.
CancellationToken
,
)
=>
HandlerResult
<
R
,
E
>
sharedServices
:
LangiumSharedServices
Optional
targetState
:
DocumentState
Returns
RequestHandler
<
P
,
null
|
R
,
E
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Langium - v4.0.0
Loading...