-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extension: do not classify '.tmpl' as 'gotmpl' by default #3595
Comments
This extension is meant to get activated only when a go-related file is open or Go debugging is asked. https://github.com/golang/vscode-go/blob/master/extension/package.json#L97-L103 The welcome page event is suspicious, but this activation event setting didn't change for quite some time. @thernstig Can you please check the Extension Host output log and see what triggered golang.go extension in your env? |
@hyangah I cannot get it to replicate now. But I do not have any repositories with Go files, and even if I did I have not opened any Golang files. I am going to close this issue, but will re-open if I see this again with the output from the Extension Host log. |
@hyangah I am reopening this temporarily to ask for consultation if this should change or not. I now found out why I see the error, and also understand why. I am opening a As can be seen here, any The problem here is, there are multiple languages that use QuestionShould this extension in reality contribute the I also wrote microsoft/vscode#233894 |
Thanks @thernstig vscode-go/extension/package.json Line 164 in b770fb8
Actually, You can configure your setting
(This will prevent from activating the Go extension just because you opened .tmpl file...) or by interactively selecting the language by clicking the language status bar on the bottom right. |
@hyangah it is possible for me to reconfigure the file association, but I think the core of the problem is microsoft/vscode#233894 Maybe you can help upvote that? I am closing this issue again, as I understand the rationale why you have it as you do. It is just hard for many users who work in multiple languages, where various files might have |
Is your feature request related to a problem? Please describe.
Consider not activating the extension until a go file is open or a user explicitly requests (command/setting). In the latest version of the exention we get this (which we did not do before):
Describe the solution you'd like
Do not invoke anything from the extension until a Go file, or any file type that the extension is registered with, is opened.
Describe alternatives you've considered
None
Additional context
This worked before. It has regressed in the latest version. See these previously, solved topics:
#2164
#3038
The text was updated successfully, but these errors were encountered: