Remove onCommand from markdown preview

This commit is contained in:
Matt Bierner
2018-09-21 13:36:37 -07:00
parent 388a62fe12
commit a101ececf4
7 changed files with 11 additions and 22 deletions

View File

@@ -10,11 +10,6 @@ export interface MessagePoster {
* Post a message to the markdown extension
*/
postMessage(type: string, body: object): void;
/**
* Post a command to be executed to the markdown extension
*/
postCommand(command: string, args: any[]): void;
}
export const createPosterForVsCode = (vscode: any) => {
@@ -26,9 +21,6 @@ export const createPosterForVsCode = (vscode: any) => {
body
});
}
postCommand(command: string, args: any[]) {
this.postMessage('command', { command, args });
}
};
};