text: const vscode = require("vscode");
  const fs = require('fs');
  
  async function onWillReceiveMessage(m) {
      if (m.type == "request"
          && m.command == "setBreakpoints"
          && typeof m.arguments.source == 'object'
          && typeof m.arguments.source.path == 'string'
      ) {
          for (const doc of vscode.workspace.textDocuments) {
              if (doc.fileName == m.arguments.source.path) {
                  m.arguments.sourceContent = doc.getText();
                  return;
              }
          }
          try {
              let uri = vscode.Uri.file(m.arguments.source.path);
              m.arguments.sourceContent = await vscode.workspace.fs.readFile(uri).then((bytes) => {
                  return new TextDecoder("utf-8").decode(bytes);
              });
          } catch (error) {
          }
      }
  }
  
  function createDebugAdapterTracker(session) {
      return {
          onWillReceiveMessage: onWillReceiveMessage,
      };
  }
  
  exports.createDebugAdapterTracker = createDebugAdapterTracker;
  