import { PositionContext } from "../documents/positionContexts/PositionContext" ; import { ext } from "../extensionVariables" ; export function showInsertionContext ( pc ) { const insertionContext = pc . getInsertionContext ( { allowInsideJsonString : true } ) ; ext . outputChannel . show ( ) ; const context = insertionContext . context ?? '(none)' ; ext . outputChannel . appendLine ( `Insertion context at ${ pc . documentPosition . line + 1 },${ pc . documentPosition . column + 1 }: ${ context }` ) ; }