class MetalsLanguageServer extends Cancelable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MetalsLanguageServer
- Cancelable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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 = Executors.newSingleThreadScheduledExecutor(), isReliableFileWatcher: Boolean = true, mtagsResolver: MtagsResolver = MtagsResolver.default(), onStartCompilation: () => Unit = () => (), classpathSearchIndexer: ClasspathSearch.Indexer = ClasspathSearch.Indexer.default)
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]
- var buildServerPromise: Promise[Unit]
- val buildTargets: BuildTargets
- def callHierarchyIncomingCalls(params: CallHierarchyIncomingCallsParams): CompletableFuture[java.util.List[CallHierarchyIncomingCall]]
- Annotations
- @JsonRequest()
- def callHierarchyOutgoingCalls(params: CallHierarchyOutgoingCallsParams): CompletableFuture[java.util.List[CallHierarchyOutgoingCall]]
- Annotations
- @JsonRequest()
- def cancel(): Unit
- Definition Classes
- MetalsLanguageServer → Cancelable
- def cancelAll(): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def codeAction(params: CodeActionParams): CompletableFuture[java.util.List[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(params: AnyRef): CompletableFuture[DidFocusResult.Value]
- Annotations
- @JsonNotification()
- def didOpen(params: DidOpenTextDocumentParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
- def didSave(params: DidSaveTextDocumentParams): CompletableFuture[Unit]
- Annotations
- @JsonNotification()
- def doctorVisibilityDidChange(params: DoctorVisibilityDidChangeParams): 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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- var excludedPackageHandler: ExcludedPackagesHandler
- def executeCommand(params: ExecuteCommandParams): CompletableFuture[AnyRef]
- Annotations
- @JsonRequest()
- def exit(): Unit
- Annotations
- @JsonNotification()
- def findTextInDependencyJars(params: FindTextInDependencyJarsRequest): CompletableFuture[java.util.List[Location]]
- Annotations
- @JsonRequest()
- var findTextInJars: FindTextInDependencyJars
- 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[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hover(params: HoverExtParams): CompletableFuture[Hover]
- Annotations
- @JsonRequest()
- var httpServer: Option[MetalsHttpServer]
- def implementation(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
- Annotations
- @JsonRequest()
- val indexingPromise: Promise[Unit]
- def initialize(params: InitializeParams): CompletableFuture[InitializeResult]
- Annotations
- @JsonRequest()
- def initialized(params: InitializedParams): CompletableFuture[Unit]
- Annotations
- @nowarn() @JsonNotification()
- val isCancelled: AtomicBoolean
- val isImportInProcess: AtomicBoolean
- val isInitialized: AtomicBoolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadedPresentationCompilerCount(): Int
- def maybeImportScript(path: io.AbsolutePath): Option[Future[Unit]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def onTypeFormatting(params: DocumentOnTypeFormattingParams): CompletableFuture[java.util.List[TextEdit]]
- Annotations
- @JsonRequest()
- val parseTrees: BatchedFunction[io.AbsolutePath, Unit]
- def parseTreesAndPublishDiags(paths: Seq[io.AbsolutePath]): Future[Unit]
- val pauseables: Pauseable
- var popupChoiceReset: PopupChoiceReset
- def prepareCallHierarchy(params: CallHierarchyPrepareParams): CompletableFuture[java.util.List[CallHierarchyItem]]
- Annotations
- @JsonRequest()
- 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): List[ReferencesResult]
- def register[T <: Cancelable](cancelable: T): T
- def rename(params: RenameParams): CompletableFuture[WorkspaceEdit]
- Annotations
- @JsonRequest()
- val scalaCli: ScalaCli
- def selectionRange(params: SelectionRangeParams): CompletableFuture[java.util.List[SelectionRange]]
- 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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def willRenameFiles(params: RenameFilesParams): CompletableFuture[WorkspaceEdit]
- Annotations
- @JsonRequest()
- 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()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated