dotty.tools.pc
Members list
Packages
Type members
Classlikes
Attributes
- Supertypes
- Self type
-
AutoImports.type
Attributes
- Supertypes
CachingDriver is a wrapper class that provides a compilation cache for InteractiveDriver. CachingDriver skips running compilation if
CachingDriver is a wrapper class that provides a compilation cache for InteractiveDriver. CachingDriver skips running compilation if
- the target URI of
run
is the same as the previous target URI - the content didn't change since the last compilation.
This compilation cache enables Metals to skip compilation and re-use the typed tree under the situation like developers sequentially hover on the symbols in the same file without any changes.
Note: we decided to cache only if the target URI is the same as in the previous run because of InteractiveDriver.currentCtx
that should return the context that refers to the last compiled source file. It would be ideal if we could update currentCtx even when we skip the compilation, but we struggled to do that. See the discussion https://github.com/scalameta/metals/pull/4225#discussion_r941138403 To avoid the complexity related to currentCtx, we decided to cache only when the target URI only if the same as the previous run.
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Companion
- object
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
-
HoverProvider.type
Attributes
- Supertypes
- Self type
-
ImplicitConversion.type
Attributes
- Supertypes
- Self type
-
ImplicitParameters.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object Emptyclass LazyWrapper
Attributes
- Companion
- trait
- Supertypes
- Self type
-
IndexedContext.type
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
-
InferredType.type
Tries to calculate edits needed to insert the inferred type annotation in all the places that it is possible such as:
Tries to calculate edits needed to insert the inferred type annotation in all the places that it is possible such as:
- value or variable declaration
- methods
- pattern matches
- for comprehensions
- lambdas
The provider will not check if the type does not exist, since there is no way to get that data from the presentation compiler. The actual check is being done via scalameta parser in InsertInferredType code action.
Value parameters
- config
-
presentation compielr configuration
- driver
-
Scala 3 interactive compiler driver
- params
-
position and actual source
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
-
InterCompletionType.type
Attributes
- Supertypes
- Self type
-
MetalsInteractive.type
Attributes
- Supertypes
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class PcReferencesProviderclass SimpleCollector[T]object Collectorclass WithSymbolSearchCollector[T]class PcRenameProviderShow all
- Self type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
PcCollector.type
Attributes
- Supertypes
Attributes
- Supertypes
-
class WithSymbolSearchCollector[DocumentHighlight]trait PcCollector[DocumentHighlight]trait PcSymbolSearchclass WithCompilationUnitclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
Attributes
- Supertypes
-
trait InlineValueProvidertrait PcSymbolSearchclass WithCompilationUnitclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
Attributes
- Supertypes
-
class WithSymbolSearchCollector[TextEdit]trait PcCollector[TextEdit]trait PcSymbolSearchclass WithCompilationUnitclass Objecttrait Matchableclass AnyShow all
Provides semantic tokens of file(@param params) according to the LSP specification.
Provides semantic tokens of file(@param params) according to the LSP specification.
Attributes
- Supertypes
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class WithSymbolSearchCollector[T]class PcRenameProvider
- Self type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
PcSymbolSearch.type
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass PresentationCompilerclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Provides the functionality necessary for the textDocument/selectionRange
request.
Provides the functionality necessary for the textDocument/selectionRange
request.
Value parameters
- compiler
-
Metals Global presentation compiler wrapper.
- params
-
offset params converted from the selectionRange params.
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
-
SemanticdbSymbols.type
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Known subtypes
-
object Collector
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
-
SymbolProvider.type
Attributes
- Supertypes
- Self type
-
TastyUtils.type
Attributes
- Supertypes
- Self type
-
TypeParameters.type
Attributes
- Supertypes
- Known subtypes
-
class PcReferencesProviderclass SimpleCollector[T]object Collectorclass WithSymbolSearchCollector[T]class PcRenameProviderShow all
Attributes
- Supertypes
-
trait PcCollector[T]trait PcSymbolSearchclass WithCompilationUnitclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Supertypes
- Known subtypes