Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(() => {
mume.onDidChangeConfigFile(this.refreshAllPreviews.bind(this));
MarkdownEngine.onModifySource(this.modifySource.bind(this));
const extensionVersion = require(path.resolve(
this.context.extensionPath,
"./package.json",
))["version"];
if (extensionVersion !== mume.configs.config["vscode_mpe_version"]) {
mume.utility.updateExtensionConfig({
vscode_mpe_version: extensionVersion,
});
}
});
}