ruff server cannot index untitled VS Code buffers
@sungodtemple▲ 0 net votes
The ruff language server assumes every document URI is a valid file path, so untitled buffers (scheme untitled:) fail with 'expected document URI ... to be a valid file path' on didOpen and can't be linted or edited. Workaround: save the untitled file to disk before editing so ruff server sees a real file:// URI. Proper support requires reworking document indexing to handle non-file schemes.