class MetalsLanguageServer extends Cancelable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MetalsLanguageServer
- Cancelable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new MetalsLanguageServer(ec: ExecutionContextExecutorService, buffers: Buffers = Buffers(), redirectSystemOut: Boolean = true, charset: Charset = StandardCharsets.UTF_8, time: Time = Time.system, initialConfig: MetalsServerConfig = MetalsServerConfig.default, progressTicks: ProgressTicks = ProgressTicks.braille, bspGlobalDirectories: List[io.AbsolutePath] = BspServers.globalInstallDirectories, sh: ScheduledExecutorService = ..., isReliableFileWatcher: Boolean = true)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var ammonite: Ammonite
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- var bspSession: Option[BspSession]
- val buildTargets: BuildTargets
-
def
cancel(): Unit
- Definition Classes
- MetalsLanguageServer → Cancelable
- def cancelAll(): Unit
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
codeAction(params: CodeActionParams): CompletableFuture[java.util.List[org.eclipse.lsp4j.CodeAction]]
- Annotations
- @JsonRequest()
-
def
codeLens(params: CodeLensParams): CompletableFuture[java.util.List[CodeLens]]
- Annotations
- @JsonRequest()
- val compilations: Compilations
-
def
completion(params: CompletionParams): CompletableFuture[CompletionList]
- Annotations
- @JsonRequest()
-
def
completionItemResolve(item: CompletionItem): CompletableFuture[CompletionItem]
- Annotations
- @JsonRequest()
- def connectToLanguageClient(client: MetalsLanguageClient): Unit
-
def
definition(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
- Annotations
- @JsonRequest()
-
def
definitionOrReferences(positionParams: TextDocumentPositionParams, token: CancelToken = EmptyCancelToken, definitionOnly: Boolean = false): Future[DefinitionResult]
Returns the the definition location or reference locations of a symbol at a given text document position.
Returns the the definition location or reference locations of a symbol at a given text document position. If the symbol represents the definition itself, this method returns the reference locations, otherwise this returns definition location. https://github.com/scalameta/metals/issues/755
-
def
definitionResult(position: TextDocumentPositionParams, token: CancelToken = EmptyCancelToken): Future[DefinitionResult]
Returns textDocument/definition in addition to the resolved symbol.
Returns textDocument/definition in addition to the resolved symbol.
The resolved symbol is used for testing purposes only.
-
def
didChange(params: DidChangeTextDocumentParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
-
def
didChangeConfiguration(params: DidChangeConfigurationParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
-
def
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
-
def
didClose(params: DidCloseTextDocumentParams): Unit
- Annotations
- @JsonNotification()
-
def
didFocus(uri: String): CompletableFuture[DidFocusResult.Value]
- Annotations
- @JsonNotification()
-
def
didOpen(params: DidOpenTextDocumentParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
-
def
didSave(params: DidSaveTextDocumentParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
-
def
documentHighlights(params: TextDocumentPositionParams): CompletableFuture[java.util.List[DocumentHighlight]]
- Annotations
- @JsonRequest()
-
def
documentSymbol(params: DocumentSymbolParams): CompletableFuture[org.eclipse.lsp4j.jsonrpc.messages.Either[java.util.List[DocumentSymbol], java.util.List[SymbolInformation]]]
- Annotations
- @JsonRequest()
- def documentSymbolResult(params: DocumentSymbolParams): Future[java.util.List[DocumentSymbol]]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val excludedPackageHandler: ExcludedPackagesHandler
-
def
executeCommand(params: ExecuteCommandParams): CompletableFuture[AnyRef]
- Annotations
- @JsonRequest()
-
def
exit(): Unit
- Annotations
- @JsonNotification()
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- var focusedDocument: Option[io.AbsolutePath]
-
def
foldingRange(params: FoldingRangeRequestParams): CompletableFuture[java.util.List[FoldingRange]]
- Annotations
- @JsonRequest()
-
def
formatting(params: DocumentFormattingParams): CompletableFuture[java.util.List[TextEdit]]
- Annotations
- @JsonRequest()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hover(params: TextDocumentPositionParams): CompletableFuture[Hover]
- Annotations
- @JsonRequest()
- var httpServer: Option[MetalsHttpServer]
-
def
implementation(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
- Annotations
- @JsonRequest()
-
def
initialize(params: InitializeParams): CompletableFuture[InitializeResult]
- Annotations
- @JsonRequest()
-
def
initialized(params: InitializedParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
- val isCancelled: AtomicBoolean
- val isInitialized: AtomicBoolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadedPresentationCompilerCount(): Int
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onTypeFormatting(params: DocumentOnTypeFormattingParams): CompletableFuture[java.util.List[TextEdit]]
- Annotations
- @JsonRequest()
- val parseTrees: BatchedFunction[io.AbsolutePath, Unit]
- val pauseables: Pauseable
- var popupChoiceReset: PopupChoiceReset
-
def
prepareRename(params: TextDocumentPositionParams): CompletableFuture[org.eclipse.lsp4j.Range]
- Annotations
- @JsonRequest()
-
def
rangeFormatting(params: DocumentRangeFormattingParams): CompletableFuture[java.util.List[TextEdit]]
- Annotations
- @JsonRequest()
-
def
references(params: ReferenceParams): CompletableFuture[java.util.List[Location]]
- Annotations
- @JsonRequest()
- def referencesResult(params: ReferenceParams): ReferencesResult
- def register[T <: Cancelable](cancelable: T): T
-
def
rename(params: RenameParams): CompletableFuture[WorkspaceEdit]
- Annotations
- @JsonRequest()
- def setupJna(): Unit
-
def
shutdown(): CompletableFuture[Unit]
- Annotations
- @JsonRequest()
- lazy val shutdownPromise: AtomicReference[Promise[Unit]]
-
def
signatureHelp(params: TextDocumentPositionParams): CompletableFuture[SignatureHelp]
- Annotations
- @JsonRequest()
- var stacktraceAnalyzer: StacktraceAnalyzer
- var statusBar: StatusBar
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- var tables: Tables
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- var treeView: TreeViewProvider
-
def
treeViewChildren(params: TreeViewChildrenParams): CompletableFuture[MetalsTreeViewChildrenResult]
- Annotations
- @JsonRequest()
-
def
treeViewNodeCollapseDidChange(params: TreeViewNodeCollapseDidChangeParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
-
def
treeViewParent(params: TreeViewParentParams): CompletableFuture[TreeViewParentResult]
- Annotations
- @JsonRequest()
-
def
treeViewReveal(params: TextDocumentPositionParams): CompletableFuture[TreeViewNodeRevealResult]
- Annotations
- @JsonRequest()
-
def
treeViewVisibilityDidChange(params: TreeViewVisibilityDidChangeParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
-
def
typeDefinition(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
- Annotations
- @JsonRequest()
- var userConfig: UserConfiguration
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
windowStateDidChange(params: WindowStateDidChangeParams): Unit
- Annotations
- @JsonNotification()
- var worksheetProvider: WorksheetProvider
- var workspace: io.AbsolutePath
- def workspaceSymbol(query: String): Seq[SymbolInformation]
-
def
workspaceSymbol(params: WorkspaceSymbolParams): CompletableFuture[java.util.List[SymbolInformation]]
- Annotations
- @JsonRequest()