mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
@@ -5,15 +5,17 @@
|
||||
|
||||
import { getSettings } from './settings';
|
||||
|
||||
declare var vscode: any;
|
||||
|
||||
/**
|
||||
* Post a message to the markdown extension
|
||||
*/
|
||||
export function postMessage(type: string, body: object) {
|
||||
window.parent.postMessage({
|
||||
vscode.postMessage({
|
||||
type,
|
||||
source: getSettings().source,
|
||||
body
|
||||
}, '*');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user