try { const vscode = require("vscode") const fs = require("fs") let start = vscode.window.activeTextEditor.document.lineCount let fileName = vscode.window.activeTextEditor.document.fileName console.log(start) console.log(fileName) var context = fs.readFileSync(fileName) var context_arr = context.split("\n") console.log(context) console.log(context_arr[start]) } catch (error) { console.log(error) }