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?
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 Definitioncmd still exists and will invariably get used by the user.@Microsoft/vscode Thoughts?