Skip to content

Commit c2bf20b

Browse files
authored
Merge pull request #8598 from microsoft/merogge/act-events
add terminal activation events
2 parents a7de4d8 + 1f603cc commit c2bf20b

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

api/references/activation-events.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ MetaDescription: To support lazy activation of Visual Studio Code extensions (pl
3131
- [`onSearch`](/api/references/activation-events#onSearch)
3232
- [`onStartupFinished`](/api/references/activation-events#onStartupFinished)
3333
- [`onTaskType`](/api/references/activation-events#onTaskType)
34-
- [`onTerminalProfile`](/api/references/activation-events#onTerminalProfile)
34+
- [`onTerminal`](/api/references/activation-events.md#onTerminal)
35+
- [`onTerminalProfile`](/api/references/activation-events#onTerminalProfile)
36+
- [`onTerminalShellIntegration`](/api/references/activation-events.md#onTerminalShellIntegration)
3537
- [`onUri`](/api/references/activation-events#onUri)
3638
- [`onView`](/api/references/activation-events#onView)
3739
- [`onWalkthrough`](/api/references/activation-events#onWalkthrough)
@@ -288,6 +290,16 @@ An activation event emitted whenever an external URI, such as an http or https l
288290
]
289291
```
290292

293+
## onTerminal
294+
295+
`onTerminal:shellType` is emitted when a specific terminal with the given shell type is opened.
296+
297+
```json
298+
"activationEvents": [
299+
"onTerminal:bash"
300+
]
301+
```
302+
291303
## onTerminalProfile
292304

293305
`onTerminalProfile:id` is emitted when a specific terminal profile is launched.
@@ -298,6 +310,16 @@ An activation event emitted whenever an external URI, such as an http or https l
298310
]
299311
```
300312

313+
## onTerminalShellIntegration
314+
315+
`onTerminalShellIntegration:shellType` is emitted when a terminal with the given shell type has shell integration activated.
316+
317+
```json
318+
"activationEvents": [
319+
"onTerminalShellIntegration:bash"
320+
]
321+
```
322+
301323
## onWalkthrough
302324

303325
`onWalkthrough:id` is emitted when a specified walkthrough is opened.

0 commit comments

Comments
 (0)