mirror of https://github.com/coder/code-server.git
Add storage save to ide-api
This commit is contained in:
parent
a2f20aa25c
commit
3fae68bbab
|
@ -136,12 +136,17 @@ interface ICommandRegistry {
|
||||||
registerCommand(command: ICommand): IDisposable;
|
registerCommand(command: ICommand): IDisposable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface IStorageService {
|
||||||
|
save(): Promise<void>;
|
||||||
|
}
|
||||||
|
|
||||||
declare namespace ide {
|
declare namespace ide {
|
||||||
export const client: {};
|
export const client: {};
|
||||||
|
|
||||||
export const workbench: {
|
export const workbench: {
|
||||||
readonly statusbarService: IStatusbarService;
|
readonly statusbarService: IStatusbarService;
|
||||||
readonly notificationService: INotificationService;
|
readonly notificationService: INotificationService;
|
||||||
|
readonly storageService: IStorageService;
|
||||||
readonly menuRegistry: IMenuRegistry;
|
readonly menuRegistry: IMenuRegistry;
|
||||||
readonly commandRegistry: ICommandRegistry;
|
readonly commandRegistry: ICommandRegistry;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@coder/ide-api",
|
"name": "@coder/ide-api",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"typings": "api.d.ts",
|
"typings": "api.d.ts",
|
||||||
"author": "Coder",
|
"author": "Coder",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -271,7 +271,7 @@ export const createApp = async (options: CreateAppOptions): Promise<{
|
||||||
const body = data.join("");
|
const body = data.join("");
|
||||||
await mkdirp(path.dirname(fullPath));
|
await mkdirp(path.dirname(fullPath));
|
||||||
fs.writeFileSync(fullPath, body);
|
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.status(200);
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue