Update Astra: v2.80.19 - Refactoring Sidebar, LM Studio integration, and new tests

This commit is contained in:
g1nation
2026-05-08 23:14:47 +09:00
parent d083177d95
commit 5ffb472d22
28 changed files with 3125 additions and 1797 deletions
+18
View File
@@ -7,10 +7,28 @@ const config = {
}
};
class EventEmitter {
constructor() {
this._listeners = [];
this.event = (listener) => {
this._listeners.push(listener);
return { dispose: () => { this._listeners = this._listeners.filter(l => l !== listener); } };
};
}
fire(value) {
for (const l of this._listeners.slice()) l(value);
}
dispose() {
this._listeners = [];
}
}
module.exports = {
EventEmitter,
workspace: {
workspaceFolders: [],
getConfiguration: () => config,
onDidChangeConfiguration: () => ({ dispose: () => {} }),
fs: {
writeFile: async () => {},
delete: async () => {}