You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document the cross-repo dev and test cycle for Copilot
Record that `modules/` is a symlink to the sibling PowerShellEditorServices
`module` directory, so building PSES deploys its DLLs straight into the path
the extension and its tests load from — meaning C# changes require rebuilding
PSES by hand, and `npm test` exercises the real Extension Host against the
locally built server. This trips up anyone (including Copilot) who edits PSES
and wonders why the extension didn't pick it up.
Drafted by Copilot (Claude Opus 4.8).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
or `Invoke-Build Build` for a full build). The build deploys into `module/PowerShellEditorServices/bin`,
53
+
which the symlinked `modules/` exposes to the extension automatically. The extension (and its tests)
54
+
then load the new DLL — no copy, but you must rebuild PSES, since the extension does not.
55
+
-**Edit extension TypeScript (client)** → `npm run compile`.
56
+
-**Verify end-to-end** → `npm test`. This launches a real VS Code Extension Host with PSES connected
57
+
and runs the Mocha suite, exercising the locally-built PSES through the symlink. Prefer this over
58
+
only eyeballing the Extension Development Host: it is the way to confirm cross-repo (client + server)
59
+
changes actually work, and to catch regressions. After changing a setting's default or any shared
60
+
behavior, run the full suite — e.g. ISE-compatibility tests assert against setting defaults.
61
+
47
62
## Key Conventions
48
63
49
64
-**VS Code best practices**: Follow the [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines) and [UX Guidelines](https://code.visualstudio.com/api/ux-guidelines/overview). Use VS Code's APIs idiomatically and prefer disposable patterns for lifecycle management.
0 commit comments