文宇祥
文宇祥
[test_vscode.zip](https://github.com/hackwaly/vscode-ocaml/files/1099593/test_vscode.zip)
Thank you for your report. I've checked it works fine on my mac with latest version. Did you check if "Format Code" command works with OCaml files? If it works,...
Likely I add '\n' to trigger chars of auto format cause this. Should we only indent cursor line instead of whole document? So we can use "--indent-empty" option of ocp-indent...
If `"editor.formatOnType"` on: we should format whole document or a range the text edit affects, like Typescript extension does. If `"editor.formatOnType"` off: we should only indent the cursor line as...
Remark: Current implementation did not respect user's indent size setting. This should fix at the same time.
I've tried a lot. Seems `formatOnType` can't work well with '\n'. If we use `formatOnType` to impl auto indent, it will encounter weird bugs, likes indentation is inserted after cursor...
> Unfortunately outdenting seems to have suffered Yes, due to this issue https://github.com/Microsoft/vscode/issues/2262, I didn't implement auto outdent through decreaseIndentPattern. I choose `formatOnType` right now until VS Code fix that...
I can't find that vscode provides any api for opening project event. but there is https://code.visualstudio.com/docs/extensionAPI/activation-events#_activationeventsworkspacecontains. So it's possible to achieve it by create another extension that execute "Build Task"...
Maybe we can submit some project generators for yeoman? So we can easily generate bucklescript project and other kind of projects.
You can open the developer tool of vscode, and then check `process.env` on the console to see what env vscode recognised