Raised in https://github.com/scalameta/metals/issues/5478, I've encountered this on my own as well when defining extension methods in companion object for trait. ## Compiler version 3.3.1 ## Minimized code ```scala //> using scala "3.3.1" opaque type Deck = Long object Deck { extension (data: Deck) { def fooSize: Int = ??? } } // import Deck.* // uncomment and semanticDB will be properly generated object DeckUsage { val deck: Deck = ??? deck.fooSize } ``` ## Output Generated semanticDB file doesn't contain entries for `fooSize` usage in object `DeckUsage` ## Expectation Generated semanticDB file doesn't contain entries for `fooSize` usage in object `DeckUsage`, without need for an additional import