TerminalCompletionRequest
data class TerminalCompletionRequest @JvmOverloads constructor(val commandLine: String, val cursorOffset: Int, val workingDirectoryUri: String? = null, val profileId: String? = null, val shellCapabilities: TerminalShellCapabilities = PLAIN)
Immutable command-line context used to request completion candidates.
Hosts should construct one request per popup refresh from the visible command line and live host metadata. The completion module treats the request as read-only input and never mutates terminal state.
Throws
if cursorOffset is outside commandLine, or splits a UTF-16 surrogate pair.
Constructors
Link copied to clipboard
constructor(commandLine: String, cursorOffset: Int, workingDirectoryUri: String? = null, profileId: String? = null, shellCapabilities: TerminalShellCapabilities = PLAIN)
Properties
Link copied to clipboard
full command-line text known to the host.
Link copied to clipboard
UTF-16 cursor offset within commandLine. The offset must be a scalar boundary and must not split a surrogate pair.
Link copied to clipboard
resolved shell lexical and replacement policy.
Link copied to clipboard
optional current working directory URI.