public class InlayHint
extends java.lang.Object
Since 3.17.0
| Constructor and Description |
|---|
InlayHint() |
InlayHint(Position position,
org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.util.List<InlayHintLabelPart>> label) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getData()
A data entry field that is preserved on a inlay hint between
a
textDocument/inlayHint and a inlayHint/resolve request. |
InlayHintKind |
getKind()
The kind of this hint.
|
org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.util.List<InlayHintLabelPart>> |
getLabel()
The label of this hint.
|
java.lang.Boolean |
getPaddingLeft()
Render padding before the hint.
|
java.lang.Boolean |
getPaddingRight()
Render padding after the hint.
|
Position |
getPosition()
The position of this hint.
|
java.util.List<TextEdit> |
getTextEdits()
Optional text edits that are performed when accepting this inlay hint.
|
org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> |
getTooltip()
The tooltip text when you hover over this item.
|
int |
hashCode() |
void |
setData(java.lang.Object data)
A data entry field that is preserved on a inlay hint between
a
textDocument/inlayHint and a inlayHint/resolve request. |
void |
setKind(InlayHintKind kind)
The kind of this hint.
|
void |
setLabel(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.util.List<InlayHintLabelPart>> label)
The label of this hint.
|
void |
setLabel(java.util.List<InlayHintLabelPart> label) |
void |
setLabel(java.lang.String label) |
void |
setPaddingLeft(java.lang.Boolean paddingLeft)
Render padding before the hint.
|
void |
setPaddingRight(java.lang.Boolean paddingRight)
Render padding after the hint.
|
void |
setPosition(Position position)
The position of this hint.
|
void |
setTextEdits(java.util.List<TextEdit> textEdits)
Optional text edits that are performed when accepting this inlay hint.
|
void |
setTooltip(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> tooltip)
The tooltip text when you hover over this item.
|
void |
setTooltip(MarkupContent tooltip) |
void |
setTooltip(java.lang.String tooltip) |
java.lang.String |
toString() |
public InlayHint()
public InlayHint(Position position, org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.util.List<InlayHintLabelPart>> label)
@Pure public Position getPosition()
public void setPosition(Position position)
@Pure public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.util.List<InlayHintLabelPart>> getLabel()
InlayHintLabelPart label parts.
*Note* that neither the string nor the label part can be empty.
public void setLabel(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.util.List<InlayHintLabelPart>> label)
InlayHintLabelPart label parts.
*Note* that neither the string nor the label part can be empty.
public void setLabel(java.lang.String label)
public void setLabel(java.util.List<InlayHintLabelPart> label)
@Pure public InlayHintKind getKind()
public void setKind(InlayHintKind kind)
@Pure public java.util.List<TextEdit> getTextEdits()
*Note* that edits are expected to change the document so that the inlay hint (or its nearest variant) is now part of the document and the inlay hint itself is now obsolete.
Depending on the client capability InlayHintCapabilities.resolveSupport clients
might resolve this property late using the resolve request.
public void setTextEdits(java.util.List<TextEdit> textEdits)
*Note* that edits are expected to change the document so that the inlay hint (or its nearest variant) is now part of the document and the inlay hint itself is now obsolete.
Depending on the client capability InlayHintCapabilities.resolveSupport clients
might resolve this property late using the resolve request.
@Pure public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> getTooltip()
Depending on the client capability InlayHintCapabilities.resolveSupport clients
might resolve this property late using the resolve request.
public void setTooltip(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> tooltip)
Depending on the client capability InlayHintCapabilities.resolveSupport clients
might resolve this property late using the resolve request.
public void setTooltip(java.lang.String tooltip)
public void setTooltip(MarkupContent tooltip)
@Pure public java.lang.Boolean getPaddingLeft()
Note: Padding should use the editor's background color, not the background color of the hint itself. That means padding can be used to visually align/separate an inlay hint.
public void setPaddingLeft(java.lang.Boolean paddingLeft)
Note: Padding should use the editor's background color, not the background color of the hint itself. That means padding can be used to visually align/separate an inlay hint.
@Pure public java.lang.Boolean getPaddingRight()
Note: Padding should use the editor's background color, not the background color of the hint itself. That means padding can be used to visually align/separate an inlay hint.
public void setPaddingRight(java.lang.Boolean paddingRight)
Note: Padding should use the editor's background color, not the background color of the hint itself. That means padding can be used to visually align/separate an inlay hint.
@Pure public java.lang.Object getData()
textDocument/inlayHint and a inlayHint/resolve request.public void setData(java.lang.Object data)
textDocument/inlayHint and a inlayHint/resolve request.@Pure public java.lang.String toString()
toString in class java.lang.Object@Pure public boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Pure public int hashCode()
hashCode in class java.lang.Object