Add input box inside an editor between the code lines. #2401
Unanswered
nikhilsinghal005
asked this question in
Extension Development QnA
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a functionality where using my extension, I want to add a input box kind of a UI inside the editor between editor lines. The way code lens do it. I tried multiple ways to do it, but failed with every approach.
for 4th option something like this. But failed to achieve this.
import * as vscode from 'vscode';
export class InlineInputWidget implements vscode.Disposable {
private editor: vscode.TextEditor;
private contentWidget: InputBoxContentWidget;
}
class InputBoxContentWidget implements vscode.ContentWidget {
private editor: vscode.TextEditor;
private position: vscode.Position;
private domNode: HTMLElement;
private id: string;
}
Can anyone guide me how can we do this.
Beta Was this translation helpful? Give feedback.
All reactions