File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ export class SwiftEnvironmentVariablesManager implements vscode.Disposable {
55
55
return ;
56
56
}
57
57
58
- const pathEnv = process . env [ "PATH" ] ?? "" ;
59
- if ( ! pathEnv . includes ( configuration . path ) ) {
58
+ if ( configuration . path ) {
60
59
environment . prepend ( "PATH" , configuration . path + pathSeparator ) ;
61
60
}
62
61
for ( const variable in configuration . swiftEnvironmentVariables ) {
@@ -75,7 +74,7 @@ export class SwiftTerminalProfileProvider implements vscode.TerminalProfileProvi
75
74
...configuration . swiftEnvironmentVariables ,
76
75
} ;
77
76
const pathEnv = process . env [ "PATH" ] ?? "" ;
78
- if ( ! pathEnv . includes ( configuration . path ) ) {
77
+ if ( configuration . path ) {
79
78
env [ "PATH" ] = configuration . path + pathSeparator + pathEnv ;
80
79
}
81
80
return new vscode . TerminalProfile ( {
You can’t perform that action at this time.
0 commit comments