Packages

c

scala.meta.internal.metals

MetalsLspService

class MetalsLspService extends Cancelable with ScalaLspService

Metals implementation of the Scala Language Service.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetalsLspService
  2. ScalaLspService
  3. MetalsService
  4. WorkspaceService
  5. TextDocumentService
  6. Cancelable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. var bspSession: Option[BspSession]
  6. var buildServerPromise: Promise[Unit]
  7. val buildTargets: BuildTargets
  8. def callHierarchyIncomingCalls(params: CallHierarchyIncomingCallsParams): CompletableFuture[java.util.List[CallHierarchyIncomingCall]]
  9. def callHierarchyOutgoingCalls(params: CallHierarchyOutgoingCallsParams): CompletableFuture[java.util.List[CallHierarchyOutgoingCall]]
  10. def cancel(): Unit
    Definition Classes
    MetalsLspServiceCancelable
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  12. def codeAction(params: CodeActionParams): CompletableFuture[java.util.List[CodeAction]]
  13. def codeLens(params: CodeLensParams): CompletableFuture[java.util.List[CodeLens]]
  14. val compilations: Compilations
  15. def completion(params: CompletionParams): CompletableFuture[CompletionList]
  16. def completionItemResolve(item: CompletionItem): CompletableFuture[CompletionItem]
  17. def definition(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
  18. 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

  19. 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.

  20. def didChange(params: DidChangeTextDocumentParams): CompletableFuture[Unit]
  21. def didChangeConfiguration(params: DidChangeConfigurationParams): CompletableFuture[Unit]
    Definition Classes
    MetalsLspServiceWorkspaceService
  22. def didChangeWatchedFiles(params: DidChangeWatchedFilesParams): CompletableFuture[Unit]
    Definition Classes
    MetalsLspServiceWorkspaceService
  23. def didClose(params: DidCloseTextDocumentParams): Unit
  24. def didFocus(params: AnyRef): CompletableFuture[DidFocusResult.Value]
    Definition Classes
    MetalsLspServiceMetalsService
  25. def didOpen(params: DidOpenTextDocumentParams): CompletableFuture[Unit]
  26. def didSave(params: DidSaveTextDocumentParams): CompletableFuture[Unit]
  27. def doctorVisibilityDidChange(params: DoctorVisibilityDidChangeParams): CompletableFuture[Unit]
    Definition Classes
    MetalsLspServiceMetalsService
  28. def documentHighlights(params: TextDocumentPositionParams): CompletableFuture[java.util.List[DocumentHighlight]]
  29. def documentSymbol(params: DocumentSymbolParams): CompletableFuture[org.eclipse.lsp4j.jsonrpc.messages.Either[java.util.List[DocumentSymbol], java.util.List[SymbolInformation]]]
  30. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  32. var excludedPackageHandler: ExcludedPackagesHandler
  33. def executeCommand(params: ExecuteCommandParams): CompletableFuture[AnyRef]
    Definition Classes
    MetalsLspServiceWorkspaceService
  34. def exit(): Unit
  35. def findTextInDependencyJars(params: FindTextInDependencyJarsRequest): CompletableFuture[java.util.List[Location]]
    Definition Classes
    MetalsLspServiceMetalsService
  36. var focusedDocument: Option[io.AbsolutePath]
  37. def foldingRange(params: FoldingRangeRequestParams): CompletableFuture[java.util.List[FoldingRange]]
  38. def formatting(params: DocumentFormattingParams): CompletableFuture[java.util.List[TextEdit]]
  39. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  41. def hover(params: HoverExtParams): CompletableFuture[Hover]
  42. var httpServer: Option[MetalsHttpServer]
  43. def implementation(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
  44. val indexingPromise: Promise[Unit]
  45. def initialize(): CompletableFuture[InitializeResult]
  46. def initialized(): Future[Unit]
  47. val isCancelled: AtomicBoolean
  48. val isImportInProcess: AtomicBoolean
  49. val isInitialized: AtomicBoolean
  50. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  51. def loadedPresentationCompilerCount(): Int
  52. def maybeImportScript(path: io.AbsolutePath): Option[Future[Unit]]
  53. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  54. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  55. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  56. def onTypeFormatting(params: DocumentOnTypeFormattingParams): CompletableFuture[java.util.List[TextEdit]]
  57. val parseTrees: BatchedFunction[io.AbsolutePath, Unit]
  58. def parseTreesAndPublishDiags(paths: Seq[io.AbsolutePath]): Future[Unit]
  59. val pauseables: Pauseable
  60. def prepareCallHierarchy(params: CallHierarchyPrepareParams): CompletableFuture[java.util.List[CallHierarchyItem]]
  61. def prepareRename(params: TextDocumentPositionParams): CompletableFuture[org.eclipse.lsp4j.Range]
  62. def rangeFormatting(params: DocumentRangeFormattingParams): CompletableFuture[java.util.List[TextEdit]]
  63. def references(params: ReferenceParams): CompletableFuture[java.util.List[Location]]
  64. def referencesResult(params: ReferenceParams): List[ReferencesResult]
  65. def register[T <: Cancelable](cancelable: T): T
  66. def rename(params: RenameParams): CompletableFuture[WorkspaceEdit]
  67. val scalaCli: ScalaCli
  68. def selectionRange(params: SelectionRangeParams): CompletableFuture[java.util.List[SelectionRange]]
  69. 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
    MetalsLspServiceTextDocumentService
  70. def shutdown(): CompletableFuture[Unit]
  71. lazy val shutdownPromise: AtomicReference[Promise[Unit]]
  72. def signatureHelp(params: TextDocumentPositionParams): CompletableFuture[SignatureHelp]
  73. val stacktraceAnalyzer: StacktraceAnalyzer
  74. val statusBar: StatusBar
  75. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  76. val tables: Tables
  77. def toString(): String
    Definition Classes
    AnyRef → Any
  78. val treeView: TreeViewProvider
  79. def treeViewChildren(params: TreeViewChildrenParams): CompletableFuture[MetalsTreeViewChildrenResult]
    Definition Classes
    MetalsLspServiceMetalsService
  80. def treeViewNodeCollapseDidChange(params: TreeViewNodeCollapseDidChangeParams): CompletableFuture[Unit]
    Definition Classes
    MetalsLspServiceMetalsService
  81. def treeViewParent(params: TreeViewParentParams): CompletableFuture[TreeViewParentResult]
    Definition Classes
    MetalsLspServiceMetalsService
  82. def treeViewReveal(params: TextDocumentPositionParams): CompletableFuture[TreeViewNodeRevealResult]
    Definition Classes
    MetalsLspServiceMetalsService
  83. def treeViewVisibilityDidChange(params: TreeViewVisibilityDidChangeParams): CompletableFuture[Unit]
    Definition Classes
    MetalsLspServiceMetalsService
  84. def typeDefinition(position: TextDocumentPositionParams): CompletableFuture[java.util.List[Location]]
  85. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  86. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  87. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  88. def willRenameFiles(params: RenameFilesParams): CompletableFuture[WorkspaceEdit]
    Definition Classes
    MetalsLspServiceWorkspaceService
  89. def windowStateDidChange(params: WindowStateDidChangeParams): Unit
    Definition Classes
    MetalsLspServiceMetalsService
  90. val worksheetProvider: WorksheetProvider
  91. val workspace: io.AbsolutePath
  92. def workspaceSymbol(query: String): Seq[SymbolInformation]
  93. def workspaceSymbol(params: WorkspaceSymbolParams): CompletableFuture[java.util.List[SymbolInformation]]
    Definition Classes
    MetalsLspServiceWorkspaceService

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from ScalaLspService

Inherited from MetalsService

Inherited from WorkspaceService

Inherited from TextDocumentService

Inherited from Cancelable

Inherited from AnyRef

Inherited from Any

Ungrouped