MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / takePrePhraseSnapshot

Method takePrePhraseSnapshot

src/core/HatTokenMap.ts:146–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 }
145
146 private takePrePhraseSnapshot() {
147 if (this.prePhraseMapSnapshot != null) {
148 this.prePhraseMapSnapshot.dispose();
149 }
150
151 this.prePhraseMapSnapshot = this.activeMap.clone();
152 this.prePhraseMapsSnapshotTimestamp = hrtime.bigint();
153 }
154}

Callers 1

Calls 2

cloneMethod · 0.80
disposeMethod · 0.45

Tested by

no test coverage detected