Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃殌 Request] How to send text to TreeItem #1206

Open
NevEinsit opened this issue Mar 21, 2024 · 0 comments
Open

[馃殌 Request] How to send text to TreeItem #1206

NevEinsit opened this issue Mar 21, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@NevEinsit
Copy link

Describe the request

Hello,

We are currently writing a text about creating/renaming files in the explorer view. The way we do it is to use the context menu on a TreeItem and click on the new file/folder or rename option. We can find the newly created item as a child item under the tree, but cannot proceed with inputting text as its name.

...
// const "parentFolder" is the parent folder where we want to create the new file
const parentFolder = await workspace.findChildItem("parent");
const menu = await parentFolder!.openContextMenu();
const op = await menu.getItem("New File...");
await op!.click();
const newFile = await parentFolder!.getChildren()[0]; // The new file is the first item under parent folder
await newFile.sendKeys("newFileName.txt") // Error, element not interactable

image

Is there a way to do this?

Thanks!

Usage

We want to achieve file manipulation under the explorer view.

@NevEinsit NevEinsit added enhancement New feature or request new-issue New issue which was not discussed yet labels Mar 21, 2024
@djelinek djelinek removed the new-issue New issue which was not discussed yet label Apr 23, 2024
@djelinek djelinek added this to the NEXT milestone Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants