-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dominik Jelinek <djelinek@redhat.com>
- Loading branch information
Showing
4 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<img width="1512" alt="ExtensionEditorDetailsSections" src="https://github.com/user-attachments/assets/b795e36c-41b2-4251-9d2a-58585377dfe0"> | ||
|
||
#### Lookup | ||
|
||
```typescript | ||
import { ExtensionEditorDetailsSection } from 'vscode-extension-tester'; | ||
... | ||
const extensionEditorDetails = new ExtensionEditorDetailsSection(); | ||
``` | ||
|
||
You can get values using following functions: | ||
|
||
```typescript | ||
await extensionEditorDetails.getCategories(); | ||
|
||
await extensionEditorDetails.getResources(); | ||
|
||
await extensionEditorDetails.getMoreInfo(); | ||
|
||
await extensionEditorDetails.getMoreInfoItem('Identifier'); | ||
|
||
await extensionEditorDetails.getReadme(); // currently not supported (Blocked by https://github.com/redhat-developer/vscode-extension-tester/issues/1492) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<img width="1512" alt="ExtensionEditorView" src="https://github.com/user-attachments/assets/df5a4809-7fa6-4417-9024-a9a35b8257e4"> | ||
|
||
#### Lookup | ||
|
||
```typescript | ||
import { ExtensionEditorView } from 'vscode-extension-tester'; | ||
... | ||
const extensionEditor = new ExtensionEditorView(); | ||
``` | ||
|
||
#### Get values from opened extension | ||
|
||
You can get individual values using following functions: | ||
|
||
```typescript | ||
await extensionEditor.getName(); | ||
|
||
await extensionEditor.getVersion(); | ||
|
||
await extensionEditor.getPublisher(); | ||
|
||
await extensionEditor.getDescription(); | ||
|
||
await extensionEditor.getCount(); | ||
``` | ||
|
||
#### Manage tabs | ||
|
||
Tabs section can be managed by this editor as well. For work with 'Details' you can use ExtensionEditorDetailsSection. | ||
|
||
```typescript | ||
await extensionEditor.getTabs(); | ||
|
||
await extensionEditor.switchToTab('tabname'); | ||
|
||
await extensionEditor.getActiveTab(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters