打开某个文件的某个行

以contents.md的第200行,举例

let file = app.metadataCache.getFirstLinkpathDest('contents','')
let leaf = app.workspace.getLeaf(false)
if(file){
    leaf.openFile(file,{ eState: { line: 200 } })
}