First you have to create a command (when using the vscode extension example put it in extension.ts) -> For example the hello world command.
You have to use openTextDocument method on the workspace and get the path for your project. Don't forget that you have to use "\" instead of "/" for the path:
let manifest = await vscode.workspace.openTextDocument(vscode.Uri.parse("untitled:"+vscode.workspace.rootPath+"\\projectmanifest.json"));
await manifest.save();
First you have to create a command (when using the vscode extension example put it in extension.ts) -> For example the hello world command.
You have to use openTextDocument method on the workspace and get the path for your project. Don't forget that you have to use "\" instead of "/" for the path: