MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / lspPositionToOffset

Function lspPositionToOffset

src/cm/lsp/codeActions.ts:64–69  ·  view source on GitHub ↗
(
	doc: { line: (n: number) => { from: number } },
	pos: Position,
)

Source from the content-addressed store, hash-verified

62}
63
64function lspPositionToOffset(
65 doc: { line: (n: number) => { from: number } },
66 pos: Position,
67): number {
68 return doc.line(pos.line + 1).from + pos.character;
69}
70
71async function requestCodeActions(
72 plugin: LSPPlugin,

Callers 1

applyChangesToFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected