public_host 4 years ago
parent
commit
5b3d3b88b9
  1. 7
      hasaki-gen-crud.js
  2. 4
      test.go

7
hasaki-gen-crud.js

@ -1,7 +1,12 @@
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)
console.log(fileName)
var context = fs.readFileSync(fileName)
var context_arr = context.split("\n")
console.log(context_arr[start])

4
test.go

@ -0,0 +1,4 @@
package main
type Test struct {
}
Loading…
Cancel
Save