- Merged embeddedNodeModulesRegex into nodeModulesRegex to handle
node_modules at any position in the path with a single regex
- Reordered logic to check vscode extension paths first, then node_modules
- Restored explicit _ in fileRegex character class for clarity
- Updated tests to match new consistent redaction behavior
Co-authored-by: bryanchen-d <41454397+bryanchen-d@users.noreply.github.com>
The fileRegex character class didn't include `@`, causing scoped npm
package paths (e.g. @xterm/xterm) to split the match and prevent proper
node_modules detection. Additionally, nodeModulesRegex only matched
paths starting with node_modules/, but full absolute paths like
/Users/.../node_modules/... don't start with node_modules/.
Added `@` to fileRegex character class and a new embeddedNodeModulesRegex
to detect node_modules anywhere in a path, preserving the node_modules/...
suffix while redacting the user-specific prefix.
Co-authored-by: bryanchen-d <41454397+bryanchen-d@users.noreply.github.com>
* Sessions: reorder pickers, rename isolation labels, gate on config
- Swap mode and model picker positions in toolbar
- Move Default Approvals next to isolation mode picker with gap
- Rename Folder/Worktree labels to Local/Copilot CLI
- Gate isolation picker on github.copilot.chat.cli.isolationOption.enabled
- Show picker as disabled (not hidden) when config is off
- Add setEnabled API to IsolationModePicker
- Listen for config changes and enforce worktree mode when disabled
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* revert
* Update src/vs/sessions/contrib/chat/browser/newChatViewPane.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat(chat): add options to show recently used and featured models in picker
* fix(chat): update showRecentlyUsed and showFeatured logic to check session type
* fix(chat): simplify showRecentlyUsed logic to always return true
* fix(chat): rename showRecentlyUsed to showUnavailableFeatured for clarity
* fix(chat): update showUnavailableFeatured to return false for correct behavior
* Use context for line breaks computation
* specifying that the line numbers are post edit
* renaming to lineNumberPostEdit
* fixing compile errors
* fixing tests
* adding owner id
* Keep current event delivery semantics
---------
Co-authored-by: Alexandru Dima <alex.dima@outlook.com>
Co-authored-by: Alex Dima <alexdima@microsoft.com>
* Initial plan
* Fix remote mode multi-file selection via Show Local dialog
Change ISimpleFileDialog.showOpenDialog to return URI[] instead of single URI.
When 'Show Local' is clicked in remote file dialog, pass through all selected
files from the native dialog instead of only taking the first result.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Improve visibility logic for branch and sync indicators in NewChatWidget
* Refactor visibility logic for branch and sync indicators in NewChatWidget
* Fix order of rendering for isolation mode and branch pickers in NewChatWidget
* Add gap to chat-full-welcome-pickers for improved layout