Discovering the precise workspace directory of the existing activeTextEditor
:
let editor = vscode.window.activeTextEditor
if (!editor) {
vscode.window.showInformationMessage('editor does not exist')
return
}
const path = editor.document.uri.fsPath
const workspaceFolder = vscode.workspace.getWorkspaceFolder(editor.document.uri)
What is the method to determine the directory of the current activeTextEditor
file?