Skip to content

Commit 3fae68b

Browse files
committed
Add storage save to ide-api
1 parent a2f20aa commit 3fae68b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/ide-api/api.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,17 @@ interface ICommandRegistry {
136136
registerCommand(command: ICommand): IDisposable;
137137
}
138138

139+
interface IStorageService {
140+
save(): Promise<void>;
141+
}
142+
139143
declare namespace ide {
140144
export const client: {};
141145

142146
export const workbench: {
143147
readonly statusbarService: IStatusbarService;
144148
readonly notificationService: INotificationService;
149+
readonly storageService: IStorageService;
145150
readonly menuRegistry: IMenuRegistry;
146151
readonly commandRegistry: ICommandRegistry;
147152

packages/ide-api/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coder/ide-api",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"typings": "api.d.ts",
55
"author": "Coder",
66
"license": "MIT",

packages/server/src/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export const createApp = async (options: CreateAppOptions): Promise<{
271271
const body = data.join("");
272272
await mkdirp(path.dirname(fullPath));
273273
fs.writeFileSync(fullPath, body);
274-
logger.debug("Wrote resource", field("path", fullPath), field("content-length", body.length));
274+
logger.info("Wrote resource", field("path", fullPath), field("content-length", body.length));
275275
res.status(200);
276276
res.end();
277277
});

0 commit comments

Comments
 (0)