You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
473 B
22 lines
473 B
|
|
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)
|
|
fs.readFile(fileName, function (context) {
|
|
|
|
var context_arr = context.split("\n")
|
|
console.log(context)
|
|
console.log(context_arr[start])
|
|
})
|
|
|
|
} catch (error) {
|
|
|
|
console.log(error)
|
|
}
|