Closed defi-pickle closed 1 year ago
Related to the issue https://github.com/tact-lang/tact-vscode/issues/3
There is probably something wrong with this bit:
context.subscriptions.push( languages.registerDocumentFormattingEditProvider('tact', { provideDocumentFormattingEdits(document: TextDocument, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]> { return Promise.resolve(formatDocument(document, context)); }, }));
Something is not right with formatDocument. If you want i can try to fix that later but this might be enough to get you started.
formatDocument
source: https://code.visualstudio.com/api/language-extensions/programmatic-language-features#format-source-code-in-an-editor
Will be included at the next release, thank you for your contribution!
Related to the issue https://github.com/tact-lang/tact-vscode/issues/3
There is probably something wrong with this bit:
Something is not right with
formatDocument
. If you want i can try to fix that later but this might be enough to get you started.source: https://code.visualstudio.com/api/language-extensions/programmatic-language-features#format-source-code-in-an-editor