Class BSLTextDocumentService
java.lang.Object
com.github._1c_syntax.bsl.languageserver.BSLTextDocumentService
- All Implemented Interfaces:
ProtocolExtension
,TextDocumentService
@Component
public class BSLTextDocumentService
extends Object
implements TextDocumentService, ProtocolExtension
-
Constructor Summary
ConstructorDescriptionBSLTextDocumentService
(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 TypeMethodDescriptioncodeAction
(CodeActionParams params) CompletableFuture<List<? extends CodeLens>>
codeLens
(CodeLensParams params) CompletableFuture<Either<List<? extends Location>,
List<? extends LocationLink>>> definition
(DefinitionParams params) diagnostics
(DiagnosticParams params) void
didChange
(DidChangeTextDocumentParams params) void
didClose
(DidCloseTextDocumentParams params) void
didOpen
(DidOpenTextDocumentParams params) void
didSave
(DidSaveTextDocumentParams params) documentColor
(DocumentColorParams params) documentLink
(DocumentLinkParams params) documentSymbol
(DocumentSymbolParams params) CompletableFuture<List<? extends TextEdit>>
formatting
(DocumentFormattingParams params) hover
(HoverParams params) inlayHint
(InlayHintParams params) prepareRename
(PrepareRenameParams params) CompletableFuture<List<? extends TextEdit>>
CompletableFuture<List<? extends Location>>
references
(ReferenceParams params) rename
(RenameParams params) void
reset()
resolveCodeLens
(CodeLens unresolved) selectionRange
(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 interfaceTextDocumentService
-
definition
public CompletableFuture<Either<List<? extends Location>,List<? extends LocationLink>>> definition(DefinitionParams params) - Specified by:
definition
in interfaceTextDocumentService
-
references
- Specified by:
references
in interfaceTextDocumentService
-
documentSymbol
public CompletableFuture<List<Either<SymbolInformation,DocumentSymbol>>> documentSymbol(DocumentSymbolParams params) - Specified by:
documentSymbol
in interfaceTextDocumentService
-
codeAction
- Specified by:
codeAction
in interfaceTextDocumentService
-
codeLens
- Specified by:
codeLens
in interfaceTextDocumentService
-
resolveCodeLens
- Specified by:
resolveCodeLens
in interfaceTextDocumentService
-
formatting
- Specified by:
formatting
in interfaceTextDocumentService
-
rangeFormatting
public CompletableFuture<List<? extends TextEdit>> rangeFormatting(DocumentRangeFormattingParams params) - Specified by:
rangeFormatting
in interfaceTextDocumentService
-
foldingRange
- Specified by:
foldingRange
in interfaceTextDocumentService
-
prepareCallHierarchy
public CompletableFuture<List<CallHierarchyItem>> prepareCallHierarchy(CallHierarchyPrepareParams params) - Specified by:
prepareCallHierarchy
in interfaceTextDocumentService
-
callHierarchyIncomingCalls
public CompletableFuture<List<CallHierarchyIncomingCall>> callHierarchyIncomingCalls(CallHierarchyIncomingCallsParams params) - Specified by:
callHierarchyIncomingCalls
in interfaceTextDocumentService
-
callHierarchyOutgoingCalls
public CompletableFuture<List<CallHierarchyOutgoingCall>> callHierarchyOutgoingCalls(CallHierarchyOutgoingCallsParams params) - Specified by:
callHierarchyOutgoingCalls
in interfaceTextDocumentService
-
selectionRange
- Specified by:
selectionRange
in interfaceTextDocumentService
-
documentColor
- Specified by:
documentColor
in interfaceTextDocumentService
-
colorPresentation
- Specified by:
colorPresentation
in interfaceTextDocumentService
-
inlayHint
- Specified by:
inlayHint
in interfaceTextDocumentService
-
didOpen
- Specified by:
didOpen
in interfaceTextDocumentService
-
didChange
- Specified by:
didChange
in interfaceTextDocumentService
-
didClose
- Specified by:
didClose
in interfaceTextDocumentService
-
didSave
- Specified by:
didSave
in interfaceTextDocumentService
-
documentLink
- Specified by:
documentLink
in interfaceTextDocumentService
-
diagnostics
- Specified by:
diagnostics
in interfaceProtocolExtension
- Parameters:
params
- Параметры запроса.- Returns:
- Список рассчитанных диагностик.
-
prepareRename
public CompletableFuture<Either3<Range,PrepareRenameResult, prepareRenamePrepareRenameDefaultBehavior>> (PrepareRenameParams params) - Specified by:
prepareRename
in interfaceTextDocumentService
-
rename
- Specified by:
rename
in interfaceTextDocumentService
-
reset
public void reset()
-