Commit d3c0126
Block auto-approved file writes with literal tilde (#316311)
Add ~ to the variable/sub-command detection regex in commandLineFileWriteAnalyzer so paths like ~/foo that the shell will expand are not auto-approved based on a static path that does not match what bash will open.
Co-authored-by: Megan Rogge <meganrogge@Megans-MacBook-Pro.local>1 parent 130f343 commit d3c0126
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
- src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments