Skip to content

Go to Definition files to open in read only mode #33823

@ramya-rao-a

Description

@ramya-rao-a

There is a feature request to the Go extension to open files from the standard library in a read only mode when user navigates to them using the Go to Definition feature for example.

This would need us to update the api for the definition provider to return the extra info of whether the file at given location should be opened in read only mode or not.
Then the code that does the actual navigation need to be updated to open a read only mode of the file.

On the other hand, extensions can themselves create a new command that does this using the TextDocumentContentProvider. But the downside is that the real Go to Definition cmd still exists and will invariably get used by the user.

@Microsoft/vscode Thoughts?

Metadata

Metadata

Assignees

Labels

apiunder-discussionIssue is under discussion for relevance, priority, approach

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions