Add storage save to ide-api

This commit is contained in:
Kyle Carberry 2019-04-09 12:24:53 -04:00
parent a2f20aa25c
commit 3fae68bbab
No known key found for this signature in database
GPG key ID: A0409BDB6B0B3EDB
3 changed files with 7 additions and 2 deletions

View file

@ -136,12 +136,17 @@ interface ICommandRegistry {
registerCommand(command: ICommand): IDisposable;
}
interface IStorageService {
save(): Promise<void>;
}
declare namespace ide {
export const client: {};
export const workbench: {
readonly statusbarService: IStatusbarService;
readonly notificationService: INotificationService;
readonly storageService: IStorageService;
readonly menuRegistry: IMenuRegistry;
readonly commandRegistry: ICommandRegistry;

View file

@ -1,6 +1,6 @@
{
"name": "@coder/ide-api",
"version": "1.0.3",
"version": "1.0.4",
"typings": "api.d.ts",
"author": "Coder",
"license": "MIT",

View file

@ -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();
});