Represents a collection of completion items to be presented in the terminal plus TerminalCompletionList.resourceOptions which indicate which file and folder resources should be requested for the terminal's cwd.
const list = new TerminalCompletionList([ { label: 'ls', replacementRange: [0, 0], kind: TerminalCompletionItemKind.Method }], { showFiles: true, cwd: Uri.file('/home/user') }); Copy
const list = new TerminalCompletionList([ { label: 'ls', replacementRange: [0, 0], kind: TerminalCompletionItemKind.Method }], { showFiles: true, cwd: Uri.file('/home/user') });
Creates a new completion list.
The completion items.
Optional
Indicates which resources should be shown as completions for the cwd of the terminal.
Resources that should be shown in the completions list for the cwd of the terminal.
Represents a collection of completion items to be presented in the terminal plus TerminalCompletionList.resourceOptions which indicate which file and folder resources should be requested for the terminal's cwd.
Example: Create a completion list that requests files for the terminal cwd