class MetalsLspService extends Cancelable with ScalaLspService
Metals implementation of the Scala Language Service.
- Alphabetic
- By Inheritance
- MetalsLspService
- ScalaLspService
- MetalsService
- WorkspaceService
- TextDocumentService
- Cancelable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MetalsLspService(ec: ExecutionContextExecutorService, sh: ScheduledExecutorService, serverInputs: MetalsServerInputs, workspace: io.AbsolutePath, client: MetalsLanguageClient, initializeParams: InitializeParams)
- ec
Execution context used for submitting tasks. This class DO NOT manage the lifecycle of this execution context.
- sh
Scheduled executor service used for scheduling tasks. This class DO NOT manage the lifecycle of this executor.
- serverInputs
Collection of different parameters used by Metals for running, which main purpose is allowing for custom bahaviour in tests.
- workspace
An absolute path to the workscape.
- client
Metals client used for sending notifications to the client. This class DO NOT manage the lifecycle of this client. It is the responsibility of the caller to shut down the client.
- initializeParams
Initialization parameters send by the client in the initialize request, which is the first request sent to the server by the client.
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
- 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]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def callHierarchyOutgoingCalls(params: CallHierarchyOutgoingCallsParams): CompletableFuture[java.util.List[CallHierarchyOutgoingCall]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def cancel(): Unit
- Definition Classes
- MetalsLspService → Cancelable
- 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]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def codeLens(params: CodeLensParams): CompletableFuture[java.util.List[CodeLens]]
- Definition Classes
- MetalsLspService → TextDocumentService
- val compilations: Compilations
- def completion(params: CompletionParams): CompletableFuture[CompletionList]
- Definition Classes
- MetalsLspService → TextDocumentService
- def completionItemResolve(item: CompletionItem): CompletableFuture[CompletionItem]
- Definition Classes
- MetalsLspService → TextDocumentService
- def definition(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
- Definition Classes
- MetalsLspService → TextDocumentService
- 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]
- Definition Classes
- MetalsLspService → TextDocumentService
- def didChangeConfiguration(params: DidChangeConfigurationParams): CompletableFuture[Unit]
- Definition Classes
- MetalsLspService → WorkspaceService
- def didChangeWatchedFiles(params: DidChangeWatchedFilesParams): CompletableFuture[Unit]
- Definition Classes
- MetalsLspService → WorkspaceService
- def didClose(params: DidCloseTextDocumentParams): Unit
- Definition Classes
- MetalsLspService → TextDocumentService
- def didFocus(params: AnyRef): CompletableFuture[DidFocusResult.Value]
- Definition Classes
- MetalsLspService → MetalsService
- def didOpen(params: DidOpenTextDocumentParams): CompletableFuture[Unit]
- Definition Classes
- MetalsLspService → TextDocumentService
- def didSave(params: DidSaveTextDocumentParams): CompletableFuture[Unit]
- Definition Classes
- MetalsLspService → TextDocumentService
- def doctorVisibilityDidChange(params: DoctorVisibilityDidChangeParams): CompletableFuture[Unit]
- Definition Classes
- MetalsLspService → MetalsService
- def documentHighlights(params: TextDocumentPositionParams): CompletableFuture[java.util.List[DocumentHighlight]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def documentSymbol(params: DocumentSymbolParams): CompletableFuture[org.eclipse.lsp4j.jsonrpc.messages.Either[java.util.List[DocumentSymbol], java.util.List[SymbolInformation]]]
- Definition Classes
- MetalsLspService → TextDocumentService
- 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]
- Definition Classes
- MetalsLspService → WorkspaceService
- def exit(): Unit
- def findTextInDependencyJars(params: FindTextInDependencyJarsRequest): CompletableFuture[java.util.List[Location]]
- Definition Classes
- MetalsLspService → MetalsService
- var focusedDocument: Option[io.AbsolutePath]
- def foldingRange(params: FoldingRangeRequestParams): CompletableFuture[java.util.List[FoldingRange]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def formatting(params: DocumentFormattingParams): CompletableFuture[java.util.List[TextEdit]]
- Definition Classes
- MetalsLspService → TextDocumentService
- 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]
- Definition Classes
- MetalsLspService → TextDocumentService
- var httpServer: Option[MetalsHttpServer]
- def implementation(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
- Definition Classes
- MetalsLspService → TextDocumentService
- val indexingPromise: Promise[Unit]
- def initialize(): CompletableFuture[InitializeResult]
- def initialized(): Future[Unit]
- 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]]
- Definition Classes
- MetalsLspService → TextDocumentService
- val parseTrees: BatchedFunction[io.AbsolutePath, Unit]
- def parseTreesAndPublishDiags(paths: Seq[io.AbsolutePath]): Future[Unit]
- val pauseables: Pauseable
- def prepareCallHierarchy(params: CallHierarchyPrepareParams): CompletableFuture[java.util.List[CallHierarchyItem]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def prepareRename(params: TextDocumentPositionParams): CompletableFuture[org.eclipse.lsp4j.Range]
- Definition Classes
- MetalsLspService → TextDocumentService
- def rangeFormatting(params: DocumentRangeFormattingParams): CompletableFuture[java.util.List[TextEdit]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def references(params: ReferenceParams): CompletableFuture[java.util.List[Location]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def referencesResult(params: ReferenceParams): List[ReferencesResult]
- def register[T <: Cancelable](cancelable: T): T
- def rename(params: RenameParams): CompletableFuture[WorkspaceEdit]
- Definition Classes
- MetalsLspService → TextDocumentService
- implicit val reports: StdReportContext
- val scalaCli: ScalaCli
- def selectionRange(params: SelectionRangeParams): CompletableFuture[java.util.List[SelectionRange]]
- Definition Classes
- MetalsLspService → TextDocumentService
- def semanticTokensFull(params: SemanticTokensParams): CompletableFuture[SemanticTokens]
Requesting semantic tokens for a whole file in order to highlight
Requesting semantic tokens for a whole file in order to highlight
- Definition Classes
- MetalsLspService → TextDocumentService
- def shutdown(): CompletableFuture[Unit]
- lazy val shutdownPromise: AtomicReference[Promise[Unit]]
- def signatureHelp(params: TextDocumentPositionParams): CompletableFuture[SignatureHelp]
- Definition Classes
- MetalsLspService → TextDocumentService
- val stacktraceAnalyzer: StacktraceAnalyzer
- val statusBar: StatusBar
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val tables: Tables
- def toString(): String
- Definition Classes
- AnyRef → Any
- val treeView: TreeViewProvider
- def treeViewChildren(params: TreeViewChildrenParams): CompletableFuture[MetalsTreeViewChildrenResult]
- Definition Classes
- MetalsLspService → MetalsService
- def treeViewNodeCollapseDidChange(params: TreeViewNodeCollapseDidChangeParams): CompletableFuture[Unit]
- Definition Classes
- MetalsLspService → MetalsService
- def treeViewParent(params: TreeViewParentParams): CompletableFuture[TreeViewParentResult]
- Definition Classes
- MetalsLspService → MetalsService
- def treeViewReveal(params: TextDocumentPositionParams): CompletableFuture[TreeViewNodeRevealResult]
- Definition Classes
- MetalsLspService → MetalsService
- def treeViewVisibilityDidChange(params: TreeViewVisibilityDidChangeParams): CompletableFuture[Unit]
- Definition Classes
- MetalsLspService → MetalsService
- def typeDefinition(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
- Definition Classes
- MetalsLspService → TextDocumentService
- 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]
- Definition Classes
- MetalsLspService → WorkspaceService
- def windowStateDidChange(params: WindowStateDidChangeParams): Unit
- Definition Classes
- MetalsLspService → MetalsService
- val worksheetProvider: WorksheetProvider
- val workspace: io.AbsolutePath
- def workspaceSymbol(query: String): Seq[SymbolInformation]
- def workspaceSymbol(params: WorkspaceSymbolParams): CompletableFuture[java.util.List[SymbolInformation]]
- Definition Classes
- MetalsLspService → WorkspaceService
- val zipReportsProvider: ZipReportsProvider
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated