From 3fae68bbab45fa99e491a48d2de647cec0a69d35 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Tue, 9 Apr 2019 12:24:53 -0400 Subject: [PATCH] Add storage save to ide-api --- packages/ide-api/api.d.ts | 5 +++++ packages/ide-api/package.json | 2 +- packages/server/src/server.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/ide-api/api.d.ts b/packages/ide-api/api.d.ts index 0a7b64fec..8d059e109 100644 --- a/packages/ide-api/api.d.ts +++ b/packages/ide-api/api.d.ts @@ -136,12 +136,17 @@ interface ICommandRegistry { registerCommand(command: ICommand): IDisposable; } +interface IStorageService { + save(): Promise; +} + declare namespace ide { export const client: {}; export const workbench: { readonly statusbarService: IStatusbarService; readonly notificationService: INotificationService; + readonly storageService: IStorageService; readonly menuRegistry: IMenuRegistry; readonly commandRegistry: ICommandRegistry; diff --git a/packages/ide-api/package.json b/packages/ide-api/package.json index 1435b94e6..71a1a6774 100644 --- a/packages/ide-api/package.json +++ b/packages/ide-api/package.json @@ -1,6 +1,6 @@ { "name": "@coder/ide-api", - "version": "1.0.3", + "version": "1.0.4", "typings": "api.d.ts", "author": "Coder", "license": "MIT", diff --git a/packages/server/src/server.ts b/packages/server/src/server.ts index ae5a93746..9555b1d7f 100644 --- a/packages/server/src/server.ts +++ b/packages/server/src/server.ts @@ -271,7 +271,7 @@ export const createApp = async (options: CreateAppOptions): Promise<{ const body = data.join(""); await mkdirp(path.dirname(fullPath)); fs.writeFileSync(fullPath, body); - logger.debug("Wrote resource", field("path", fullPath), field("content-length", body.length)); + logger.info("Wrote resource", field("path", fullPath), field("content-length", body.length)); res.status(200); res.end(); });