@almadar/workspace 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/service.d.ts +7 -1
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1718,6 +1718,14 @@ var WorkspaceServiceImpl = class {
|
|
|
1718
1718
|
setAppId(id) {
|
|
1719
1719
|
this._appId = id;
|
|
1720
1720
|
}
|
|
1721
|
+
/**
|
|
1722
|
+
* Set (or clear) the GitHub config after open. Lets a consumer resolve the
|
|
1723
|
+
* link/token lazily — e.g. from a workspace file read post-open — and wire
|
|
1724
|
+
* `commitAndPush`/`pullIfLinked` without knowing it at construction time.
|
|
1725
|
+
*/
|
|
1726
|
+
setGitHub(config) {
|
|
1727
|
+
this.github = config;
|
|
1728
|
+
}
|
|
1721
1729
|
// === Helpers ===
|
|
1722
1730
|
/** Run `op` under a per-path serial lock. */
|
|
1723
1731
|
withLock(absPath, op) {
|