'use strict' ; import { TextDocument } from 'vscode' ; import { DocumentPositionResolver , PddlPosition } from 'pddl-workspace' ; export class CodeDocumentPositionResolver extends DocumentPositionResolver { constructor ( private readonly document ) { super ( ) ; } resolveToPosition ( offset ) { const documentPosition = this . document . positionAt ( offset ) ; return new PddlPosition ( documentPosition . line , documentPosition . character ) ; } }