Archived
1
0

Add additional ide-api events

This commit is contained in:
Kyle Carberry
2019-03-12 17:43:53 -04:00
parent 6c8e513e71
commit 7cc7aa51aa
3 changed files with 75 additions and 1 deletions

View File

@ -158,6 +158,19 @@ declare namespace ide {
readonly notificationService: INotificationService;
readonly menuRegistry: IMenuRegistry;
readonly commandRegistry: ICommandRegistry;
onFileCreate(cb: (path: string) => void): void;
onFileMove(cb: (path: string, target: string) => void): void;
onFileDelete(cb: (path: string) => void): void;
onFileSaved(cb: (path: string) => void): void;
onFileCopy(cb: (path: string, target: string) => void): void;
onModelAdded(cb: (path: string, languageId: string) => void): void;
onModelRemoved(cb: (path: string, languageId: string) => void): void;
onModelLanguageChange(cb: (path: string, languageId: string, oldLanguageId: string) => void): void;
onTerminalAdded(cb: () => void): void;
onTerminalRemoved(cb: () => void): void;
};
export enum Severity {

View File

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