JohnnyMorganz
JohnnyMorganz
We already have uses of "parse" in tests - see WorkspaceFileResolver as an example. Our helper function already sets up the SourceModule etc. You may need to make the string...
This is probably caused by the same issue as https://github.com/JohnnyMorganz/StyLua/issues/657
Coming back to this, I wonder if we should accept the formatter irreversability (like we do for tables), and keep an if expression expanded if it was already expanded in...
+1 there. I no longer agree with the idea of relying on input to determine output. The most major problem being that in a project it now depends on how...
Going to close this as not planned for now. I think it either belongs in another tool (like isort), or as part of a language server (maybe I'll add it...
For anyone interested, this functionality has been submitted to Luau Language Server and should hopefully be available in one of the next releases: https://github.com/JohnnyMorganz/luau-lsp/pull/294
Following some external motivation, I've reconsidered again, and I think its actually fair to add this to stylua. Two things: it will be off by default (users subscribe into requires...
Sorry for the significant delay. Looking back at this, it seems that VSCode now supports passing through the relevant formatter to any live sharing clients. So this should hopefully no...
Just tested this recently and it looks like the live share was working without issues. On a secondary computer with stylua extension not installed, formatting still works due to the...
When this issue was initially created, I think I misunderstood the behaviour initially, and the fact that the file was midway up the path was a red herring. This should...