Skip to content

Commit d82252c

Browse files
committed
Rename air.addExecutableToPath to air.addExecutableToTerminalPath
To be a bit more explicit and less confusing with `air.executablePath`
1 parent be64489 commit d82252c

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎editors/code/CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Development version
99

10-
- New `air.addExecutableToPath` configuration option to control whether the `air` executable located by `air.executableStrategy` is also added to the `PATH` of all integrated terminals. This ensures that a call to `air` in an integrated terminal uses the same version of Air used by the editor, which is particularly useful when agents call Air on your behalf. It is on by default (#500).
10+
- New `air.addExecutableToTerminalPath` configuration option to control whether the `air` executable located by `air.executableStrategy` is also added to the `PATH` of all integrated terminals. This ensures that a call to `air` in an integrated terminal uses the same version of Air used by the editor, which is particularly useful when agents call Air on your behalf. It is on by default (#500).
1111

1212

1313
## 0.24.0

‎editors/code/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"scope": "window",
104104
"type": "string"
105105
},
106-
"air.addExecutableToPath": {
106+
"air.addExecutableToTerminalPath": {
107107
"default": true,
108108
"markdownDescription": "Whether to add the directory containing the `air` executable resolved by `air.executableStrategy` to the `PATH` of integrated terminals. This ensures that `air` invoked in an integrated terminal matches `air` used by the editor.",
109109
"scope": "window",

‎editors/code/src/environment.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,14 @@ export class PathEnvironmentVariableManager implements vscode.Disposable {
4040
}),
4141
);
4242

43-
// When the user changes `air.addExecutableToPath`, reflect this immediately in new terminals
43+
// When the user changes `air.addExecutableToTerminalPath`, reflect this immediately in new terminals
4444
this.subscriptions.push(
4545
vscode.workspace.onDidChangeConfiguration((event) => {
46-
if (event.affectsConfiguration("air.addExecutableToPath")) {
46+
if (
47+
event.affectsConfiguration(
48+
"air.addExecutableToTerminalPath",
49+
)
50+
) {
4751
this.update();
4852
}
4953
}),

0 commit comments

Comments
 (0)