How to use the @shd101wyy/mume.onDidChangeConfigFile function in @shd101wyy/mume

To help you get started, we’ve selected a few @shd101wyy/mume examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shd101wyy / vscode-markdown-preview-enhanced / src / preview-content-provider.ts View on Github external
.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,
          });
        }
      });
  }