You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Is there a way to do this?
Thanks!
Usage
We want to achieve file manipulation under the explorer view.
The text was updated successfully, but these errors were encountered:
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.
Is there a way to do this?
Thanks!
Usage
We want to achieve file manipulation under the explorer view.
The text was updated successfully, but these errors were encountered: