Refresh Copilot assets

This commit is contained in:
vczh
2026-04-21 00:30:18 -07:00
parent eaf383a351
commit ca710a99a6
5 changed files with 16 additions and 3 deletions
+5
View File
@@ -19,6 +19,7 @@
- Dereference `Ptr<T>` via `.Obj()` (not `*ptr`) [1]
- `vl::regex` separator regex: `L"[\\/\\\\]+"` [1]
- Use 2-space indentation in embedded XML/JSON literals [1]
- `collections::List` has deleted copy constructor; use `std::move()` for structs with `List` members [1]
# Refinements
@@ -97,3 +98,7 @@ When writing XML or JSON inside a C++ string literal (e.g. `LR"GacUISrc(... )Gac
In `vl::regex::Regex`, both `/` and `\\` are escaping characters, and incorrect escaping inside `[]` can throw errors like `Illegal character set definition.`
To split paths by either `/` or `\\`, a verified pattern is `L"[\\/\\\\]+"`, and using `Regex::Split(..., keepEmptyMatch=false, ...)` conveniently drops empty components (so `//` behaves like `/`).
## `collections::List` has deleted copy constructor; use `std::move()` for structs with `List` members
When a C++ struct contains `vl::collections::List` fields, the struct's implicit copy constructor is deleted. Appending such structs to a `vl::collections::List` by copy will fail at compile time with `error C2280`. Use `std::move()` when adding these structs to destination lists (e.g. `list.Add(std::move(model))`). Note: there is no repo-provided `Move()` utility; always use `std::move()` from `<utility>`.
+2 -1
View File
@@ -8,6 +8,7 @@ if ([string]::IsNullOrEmpty($Command)) {
. $PSScriptRoot\copilotShared.ps1
$cdbpath = GetCDBPath
$commandLine = "echo .remote_exit | `"$($cdbpath)`" -remote npipe:server=.,pipe=VlppUnitTest -clines 0 -c `"$Command`""
$debuggerNamedPipe = GetDebuggerNamedPipe
$commandLine = "echo .remote_exit | `"$($cdbpath)`" -remote npipe:server=.,pipe=$debuggerNamedPipe -clines 0 -c `"$Command`""
echo $commandLine
cmd.exe /S /C $commandLine
+2 -1
View File
@@ -25,6 +25,7 @@ Write-Host "Selected $executableName`: $($latestFile.Path) (Modified: $($latestF
$debugArgs = GetDebugArgs $solutionFolder $latestFile $Executable
$cdbpath = GetCDBPath
$commandLine = "`"$($cdbpath)`" -server npipe:pipe=VlppUnitTest -cf `"$PSScriptRoot\copilotDebug_Init.txt`" -o `"$($latestFile.Path)`" $debugArgs"
$debuggerNamedPipe = GetDebuggerNamedPipe
$commandLine = "`"$($cdbpath)`" -server npipe:pipe=$debuggerNamedPipe -cf `"$PSScriptRoot\copilotDebug_Init.txt`" -o `"$($latestFile.Path)`" $debugArgs"
echo $commandLine
cmd.exe /S /C $commandLine
+2 -1
View File
@@ -1,5 +1,6 @@
. $PSScriptRoot\copilotShared.ps1
$cdbpath = GetCDBPath
$commandLine = "`"$($cdbpath)`" -remote npipe:server=.,pipe=VlppUnitTest -clines 0 -c `"qq`""
$debuggerNamedPipe = GetDebuggerNamedPipe
$commandLine = "`"$($cdbpath)`" -remote npipe:server=.,pipe=$debuggerNamedPipe -clines 0 -c `"qq`""
echo $commandLine
cmd.exe /S /C $commandLine
+5
View File
@@ -8,6 +8,11 @@ function GetCDBPath {
return $env:CDBPATH
}
function GetDebuggerNamedPipe {
$debuggerRoot = (Resolve-Path (Join-Path $PSScriptRoot "..\..")).Path
return ($debuggerRoot -replace "[^A-Za-z0-9]", "").ToUpperInvariant()
}
function GetSolutionDir {
$currentDir = Get-Location
$solutionFolder = $null