stef-levesque/vscode-shader

HLSL Formatting does not work

yarikpetrenko opened this issue · 1 comments

When I press format document it's just do nothing. Currently I'm using last version of VSCode 1.74.3. I was trying to debug extension but I cannot fix it. It creates cpp file successfully but this line just return undefined (extension.ts, line 24)

return vscode.commands.executeCommand<vscode.TextEdit[]>('vscode.executeFormatDocumentProvider', doc.uri, options) .then(r => (tmpFile.removeCallback(), r));

I tried to copy my hlsl code to cpp file and format and it works. But I do not why extension seems can't do it action 'vscode.executeFormatDocumentProvider' return undefined. I checked doc.uri and options it also seems correct I do not know where is the problem.

Was fixed with latest c++ update