Skip to content

Feature request: Server initiated "window/showTextDocument" notification #612

@rasika

Description

@rasika

I would like to request a feature which is a server-initiated notification window/showTextDocument to open and/or show text document with a given Location.

Propose Change

  • a new method: 'window/showTextDocument'
  • params: Location defined as follows:
interface Location {
	uri: DocumentUri;
	range: Range;
}

Why?
This is beneficial when text files are generated by the Server and wants clients to open / show the text document(optionally to focus specific position) in cases such as test files generation, stubs generation.

I am already aware of the CreateFile and CreateFileOptions still it won't allow to focus on specific position for a Server initiated notification(please correct me if I am wrong here).

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalitygood first issuehelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions