( pattern: string, source: SettingSource, )
| 136 | * on allowWrite paths (it only strips trailing glob suffixes). |
| 137 | */ |
| 138 | export function resolveSandboxFilesystemPath( |
| 139 | pattern: string, |
| 140 | source: SettingSource, |
| 141 | ): string { |
| 142 | // Legacy permission-rule escape: //path → /path. Kept for compat with |
| 143 | // users who worked around #30067 by writing //Users/foo/.cargo in config. |
| 144 | if (pattern.startsWith('//')) return pattern.slice(1) |
| 145 | return expandPath(pattern, getSettingsRootPathForSource(source)) |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Check if only managed sandbox domains should be used. |
no test coverage detected