Skip to content

Can't format custom configured extensions #974

@amyreese

Description

@amyreese

In ruff config:

[tool.ruff]
extension = { thing="markdown" }

[tool.ruff.format]
preview = true

In vscode:

  • Install local extension build, point at local cargo build of ruff
  • Enable ruff formatter preview mode in vscode config
  • Create new file named foo.thing
  • Set file type in vscode to Markdown
  • Run command Format Document With... and select Ruff
[Trace - 11:11:43 AM] Sending request 'textDocument/formatting - (19)'.
Params: {
    "textDocument": {
        "uri": "file:///Users/amethyst/workspace/ruff/crates/ruff_linter/src/foo.thing"
    },
    "options": {
        "tabSize": 4,
        "insertSpaces": true,
        "insertFinalNewline": true
    }
}


[Trace - 11:11:43 AM] Received response 'textDocument/formatting - (19)' in 2ms.
No result returned.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions