@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Function createFakeEditor

    • Creates a fake editor capability over an in-memory document.

      The active document is a real string that same-document edits rewrite, so a test exercises the service's own offset and range arithmetic rather than a recording of the calls it made. Line endings are honoured as written: pass \r\n text and the offsets come out with \r\n semantics. Workspace edits are only recorded; asserting their application belongs in an adapter/Extension Host test.

      Returns FakeEditor

      const editors = createFakeEditor();
      editors._open({ text: 'hello world', selections: [{ start: {line:0,character:0}, end: {line:0,character:5} }] });