Class BSLTextDocumentService
java.lang.Object
com.github._1c_syntax.bsl.languageserver.BSLTextDocumentService
- All Implemented Interfaces:
ProtocolExtension
,org.eclipse.lsp4j.services.TextDocumentService
@Component
public class BSLTextDocumentService
extends Object
implements org.eclipse.lsp4j.services.TextDocumentService, ProtocolExtension
-
Constructor Summary
ConstructorsConstructorDescriptionBSLTextDocumentService
(ServerContext context, LanguageServerConfiguration configuration, DiagnosticProvider diagnosticProvider, CodeActionProvider codeActionProvider, CodeLensProvider codeLensProvider, DocumentLinkProvider documentLinkProvider, DocumentSymbolProvider documentSymbolProvider, FoldingRangeProvider foldingRangeProvider, FormatProvider formatProvider, HoverProvider hoverProvider, ReferencesProvider referencesProvider, DefinitionProvider definitionProvider, CallHierarchyProvider callHierarchyProvider, SelectionRangeProvider selectionRangeProvider, ColorProvider colorProvider, RenameProvider renameProvider, InlayHintProvider inlayHintProvider) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<List<org.eclipse.lsp4j.CallHierarchyIncomingCall>>
callHierarchyIncomingCalls
(org.eclipse.lsp4j.CallHierarchyIncomingCallsParams params) CompletableFuture<List<org.eclipse.lsp4j.CallHierarchyOutgoingCall>>
callHierarchyOutgoingCalls
(org.eclipse.lsp4j.CallHierarchyOutgoingCallsParams params) CompletableFuture<List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,
org.eclipse.lsp4j.CodeAction>>> codeAction
(org.eclipse.lsp4j.CodeActionParams params) CompletableFuture<List<? extends org.eclipse.lsp4j.CodeLens>>
codeLens
(org.eclipse.lsp4j.CodeLensParams params) CompletableFuture<List<org.eclipse.lsp4j.ColorPresentation>>
colorPresentation
(org.eclipse.lsp4j.ColorPresentationParams params) CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,
List<? extends org.eclipse.lsp4j.LocationLink>>> definition
(org.eclipse.lsp4j.DefinitionParams params) diagnostics
(DiagnosticParams params) void
didChange
(org.eclipse.lsp4j.DidChangeTextDocumentParams params) void
didClose
(org.eclipse.lsp4j.DidCloseTextDocumentParams params) void
didOpen
(org.eclipse.lsp4j.DidOpenTextDocumentParams params) void
didSave
(org.eclipse.lsp4j.DidSaveTextDocumentParams params) CompletableFuture<List<org.eclipse.lsp4j.ColorInformation>>
documentColor
(org.eclipse.lsp4j.DocumentColorParams params) CompletableFuture<List<org.eclipse.lsp4j.DocumentLink>>
documentLink
(org.eclipse.lsp4j.DocumentLinkParams params) CompletableFuture<List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,
org.eclipse.lsp4j.DocumentSymbol>>> documentSymbol
(org.eclipse.lsp4j.DocumentSymbolParams params) CompletableFuture<List<org.eclipse.lsp4j.FoldingRange>>
foldingRange
(org.eclipse.lsp4j.FoldingRangeRequestParams params) CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>>
formatting
(org.eclipse.lsp4j.DocumentFormattingParams params) CompletableFuture<org.eclipse.lsp4j.Hover>
hover
(org.eclipse.lsp4j.HoverParams params) CompletableFuture<List<org.eclipse.lsp4j.InlayHint>>
inlayHint
(org.eclipse.lsp4j.InlayHintParams params) CompletableFuture<List<org.eclipse.lsp4j.CallHierarchyItem>>
prepareCallHierarchy
(org.eclipse.lsp4j.CallHierarchyPrepareParams params) CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either3<org.eclipse.lsp4j.Range,
org.eclipse.lsp4j.PrepareRenameResult, org.eclipse.lsp4j.PrepareRenameDefaultBehavior>> prepareRename
(org.eclipse.lsp4j.PrepareRenameParams params) CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>>
rangeFormatting
(org.eclipse.lsp4j.DocumentRangeFormattingParams params) CompletableFuture<List<? extends org.eclipse.lsp4j.Location>>
references
(org.eclipse.lsp4j.ReferenceParams params) CompletableFuture<org.eclipse.lsp4j.WorkspaceEdit>
rename
(org.eclipse.lsp4j.RenameParams params) void
reset()
CompletableFuture<org.eclipse.lsp4j.CodeLens>
resolveCodeLens
(org.eclipse.lsp4j.CodeLens unresolved) CompletableFuture<List<org.eclipse.lsp4j.SelectionRange>>
selectionRange
(org.eclipse.lsp4j.SelectionRangeParams params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.lsp4j.services.TextDocumentService
completion, declaration, diagnostic, documentHighlight, documentLinkResolve, implementation, inlineValue, linkedEditingRange, moniker, onTypeFormatting, prepareTypeHierarchy, resolveCodeAction, resolveCompletionItem, resolveInlayHint, semanticTokensFull, semanticTokensFullDelta, semanticTokensRange, signatureHelp, typeDefinition, typeHierarchySubtypes, typeHierarchySupertypes, willSave, willSaveWaitUntil
-
Constructor Details
-
BSLTextDocumentService
@ConstructorProperties({"context","configuration","diagnosticProvider","codeActionProvider","codeLensProvider","documentLinkProvider","documentSymbolProvider","foldingRangeProvider","formatProvider","hoverProvider","referencesProvider","definitionProvider","callHierarchyProvider","selectionRangeProvider","colorProvider","renameProvider","inlayHintProvider"}) public BSLTextDocumentService(ServerContext context, LanguageServerConfiguration configuration, DiagnosticProvider diagnosticProvider, CodeActionProvider codeActionProvider, CodeLensProvider codeLensProvider, DocumentLinkProvider documentLinkProvider, DocumentSymbolProvider documentSymbolProvider, FoldingRangeProvider foldingRangeProvider, FormatProvider formatProvider, HoverProvider hoverProvider, ReferencesProvider referencesProvider, DefinitionProvider definitionProvider, CallHierarchyProvider callHierarchyProvider, SelectionRangeProvider selectionRangeProvider, ColorProvider colorProvider, RenameProvider renameProvider, InlayHintProvider inlayHintProvider)
-
-
Method Details
-
hover
- Specified by:
hover
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
definition
public CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either<List<? extends org.eclipse.lsp4j.Location>,List<? extends org.eclipse.lsp4j.LocationLink>>> definition(org.eclipse.lsp4j.DefinitionParams params) - Specified by:
definition
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
references
public CompletableFuture<List<? extends org.eclipse.lsp4j.Location>> references(org.eclipse.lsp4j.ReferenceParams params) - Specified by:
references
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
documentSymbol
public CompletableFuture<List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,org.eclipse.lsp4j.DocumentSymbol>>> documentSymbol(org.eclipse.lsp4j.DocumentSymbolParams params) - Specified by:
documentSymbol
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
codeAction
public CompletableFuture<List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,org.eclipse.lsp4j.CodeAction>>> codeAction(org.eclipse.lsp4j.CodeActionParams params) - Specified by:
codeAction
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
codeLens
public CompletableFuture<List<? extends org.eclipse.lsp4j.CodeLens>> codeLens(org.eclipse.lsp4j.CodeLensParams params) - Specified by:
codeLens
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
resolveCodeLens
public CompletableFuture<org.eclipse.lsp4j.CodeLens> resolveCodeLens(org.eclipse.lsp4j.CodeLens unresolved) - Specified by:
resolveCodeLens
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
formatting
public CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>> formatting(org.eclipse.lsp4j.DocumentFormattingParams params) - Specified by:
formatting
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
rangeFormatting
public CompletableFuture<List<? extends org.eclipse.lsp4j.TextEdit>> rangeFormatting(org.eclipse.lsp4j.DocumentRangeFormattingParams params) - Specified by:
rangeFormatting
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
foldingRange
public CompletableFuture<List<org.eclipse.lsp4j.FoldingRange>> foldingRange(org.eclipse.lsp4j.FoldingRangeRequestParams params) - Specified by:
foldingRange
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
prepareCallHierarchy
public CompletableFuture<List<org.eclipse.lsp4j.CallHierarchyItem>> prepareCallHierarchy(org.eclipse.lsp4j.CallHierarchyPrepareParams params) - Specified by:
prepareCallHierarchy
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
callHierarchyIncomingCalls
public CompletableFuture<List<org.eclipse.lsp4j.CallHierarchyIncomingCall>> callHierarchyIncomingCalls(org.eclipse.lsp4j.CallHierarchyIncomingCallsParams params) - Specified by:
callHierarchyIncomingCalls
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
callHierarchyOutgoingCalls
public CompletableFuture<List<org.eclipse.lsp4j.CallHierarchyOutgoingCall>> callHierarchyOutgoingCalls(org.eclipse.lsp4j.CallHierarchyOutgoingCallsParams params) - Specified by:
callHierarchyOutgoingCalls
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
selectionRange
public CompletableFuture<List<org.eclipse.lsp4j.SelectionRange>> selectionRange(org.eclipse.lsp4j.SelectionRangeParams params) - Specified by:
selectionRange
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
documentColor
public CompletableFuture<List<org.eclipse.lsp4j.ColorInformation>> documentColor(org.eclipse.lsp4j.DocumentColorParams params) - Specified by:
documentColor
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
colorPresentation
public CompletableFuture<List<org.eclipse.lsp4j.ColorPresentation>> colorPresentation(org.eclipse.lsp4j.ColorPresentationParams params) - Specified by:
colorPresentation
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
inlayHint
public CompletableFuture<List<org.eclipse.lsp4j.InlayHint>> inlayHint(org.eclipse.lsp4j.InlayHintParams params) - Specified by:
inlayHint
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didOpen
public void didOpen(org.eclipse.lsp4j.DidOpenTextDocumentParams params) - Specified by:
didOpen
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didChange
public void didChange(org.eclipse.lsp4j.DidChangeTextDocumentParams params) - Specified by:
didChange
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didClose
public void didClose(org.eclipse.lsp4j.DidCloseTextDocumentParams params) - Specified by:
didClose
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
didSave
public void didSave(org.eclipse.lsp4j.DidSaveTextDocumentParams params) - Specified by:
didSave
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
documentLink
public CompletableFuture<List<org.eclipse.lsp4j.DocumentLink>> documentLink(org.eclipse.lsp4j.DocumentLinkParams params) - Specified by:
documentLink
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
diagnostics
- Specified by:
diagnostics
in interfaceProtocolExtension
- Parameters:
params
- Параметры запроса.- Returns:
- Список рассчитанных диагностик.
-
prepareRename
public CompletableFuture<org.eclipse.lsp4j.jsonrpc.messages.Either3<org.eclipse.lsp4j.Range,org.eclipse.lsp4j.PrepareRenameResult, prepareRenameorg.eclipse.lsp4j.PrepareRenameDefaultBehavior>> (org.eclipse.lsp4j.PrepareRenameParams params) - Specified by:
prepareRename
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
rename
public CompletableFuture<org.eclipse.lsp4j.WorkspaceEdit> rename(org.eclipse.lsp4j.RenameParams params) - Specified by:
rename
in interfaceorg.eclipse.lsp4j.services.TextDocumentService
-
reset
public void reset()
-