Skip to content

Scratch buffers #1030

Open
Open
@rwols

Description

@rwols

There's no schema for scratch buffers (a buffer in the editor that has no associated file).

I propose something like buffer://<some-string-id-provided-by-client> to tell a language server: "Here's a document that's opened, but it has no associated file on disk".

Because the content of the buffer is provided in the textDocument/didOpen notification there shouldn't be a technical roadblock to this.

Because a server knows the workspace folders, it can deduce some basic properties like find an associated config file (e.g. tsconfig.json). So it should be able to provide basic services to scratch buffers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions