You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - is it possible to get a document formatting feature? Sometimes it is really hard to debug when you have a mismatched {} and the eval output error line number is the last line of the program, and the real problem is somewhere else.
The text was updated successfully, but these errors were encountered:
The part where all the formatting logic is in the implementation of DocumentFormattingEditProvider which should analyze selected Rholang code/file and do the work. I don't see support to work with parser output but only to work directly with string.
This basically means that, adding formatting support to the extension is hard as writing function (document: vscode.TextDocument): vscode.TextEdit[] (for range formatting position must be also included).
Here is the simple formatting extension example. https://github.com/jrieken/vscode-formatter-sample/blob/master/src/extension.ts
Hi - is it possible to get a document formatting feature? Sometimes it is really hard to debug when you have a mismatched {} and the eval output error line number is the last line of the program, and the real problem is somewhere else.
The text was updated successfully, but these errors were encountered: