c
scala.meta.internal.metals.codeactions
CreateCompanionObjectCodeAction
Companion object CreateCompanionObjectCodeAction
class CreateCompanionObjectCodeAction extends CodeAction
It creates braceless or braceful companion objects for classes, traits, and enums Then navigates to the position of the created object!
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CreateCompanionObjectCodeAction
- CodeAction
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type ActionCommand = ParametrizedCommand[CommandData]
- Definition Classes
- CodeAction
- abstract type CommandData
- Definition Classes
- CodeAction
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
- implicit val actionDiagnosticOrdering: Ordering[org.eclipse.lsp4j.CodeAction]
- Definition Classes
- CodeAction
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def command: Option[ActionCommand]
- Definition Classes
- CodeAction
- def contribute(params: CodeActionParams, token: CancelToken)(implicit ec: ExecutionContext): Future[Seq[org.eclipse.lsp4j.CodeAction]]
- Definition Classes
- CreateCompanionObjectCodeAction → CodeAction
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def handleCommand(data: CommandData, token: CancelToken)(implicit ec: ExecutionContext): Future[Unit]
- Definition Classes
- CodeAction
- Annotations
- @nowarn()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kind: String
This should be one of the String constants listed in org.eclipse.lsp4j.CodeActionKind
This should be one of the String constants listed in org.eclipse.lsp4j.CodeActionKind
- Definition Classes
- CreateCompanionObjectCodeAction → CodeAction
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)