MCPcopy Index your code
hub / github.com/witheve/Eve / jumpTo

Method jumpTo

src/ide.ts:1043–1052  ·  view source on GitHub ↗
(id:string)

Source from the content-addressed store, hash-verified

1041 }, 0);
1042
1043 jumpTo(id:string) {
1044 for(let span of this.getAllSpans()) {
1045 if(span.source.id === id) {
1046 let loc = span.find();
1047 if(!loc) break;
1048 this.cm.scrollIntoView(loc, 20);
1049 break;
1050 }
1051 }
1052 }
1053
1054 scrollToPosition(position:Position) {
1055 let top = this.cm.cursorCoords(position, "local").top;

Callers

nothing calls this directly

Calls 3

getAllSpansMethod · 0.95
scrollIntoViewMethod · 0.80
findMethod · 0.65

Tested by

no test coverage detected