MCPcopy Index your code
hub / github.com/anomalyco/opencode / endPosition

Function endPosition

packages/opencode/src/lsp/client.ts:83–89  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

81}
82
83function endPosition(text: string) {
84 const lines = text.split(/\r\n|\r|\n/)
85 return {
86 line: lines.length - 1,
87 character: lines.at(-1)?.length ?? 0,
88 }
89}
90
91function dedupeDiagnostics(items: Diagnostic[]) {
92 const seen = new Set<string>()

Callers 1

openFunction · 0.85

Calls 1

atMethod · 0.80

Tested by

no test coverage detected