mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Remove onCommand from markdown preview
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user