I want to scan through the currently opened file in the workspace. How do I do that?
I tried below lines
console.log(vscode.window.activeTextEditor); //Didn't work
The below code didn't work.
vscode.workspace.openTextDocument(vscode.window.terminals).then(document => {
let text = document.getText();
// console.log(text);
});
I see and error saying "did not find a valid project structure, exiting...."
P.S: Currently I'm running this on a salesforce project.