Skip to content

Commit 51b64ed

Browse files
adonovangopherbot
authored andcommitted
extension/package.json: treat *.s files as Go Assembly, language go.asm
This enables "Go to definition" on symbols in Go assembly files. Updates golang/go#71754 Change-Id: I86d08e0cbc2ed91afcfac02c09c0792266ab3b00 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/680515 Auto-Submit: Alan Donovan <[email protected]> kokoro-CI: kokoro <[email protected]> Reviewed-by: Hongxiang Jiang <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 707321c commit 51b64ed

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

extension/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"onLanguage:go",
9999
"onLanguage:go.sum",
100100
"onLanguage:gotmpl",
101+
"onLanguage:go.asm",
101102
"onDebugInitialConfigurations",
102103
"onDebugResolve:go",
103104
"onWebviewPanel:welcomeGo"
@@ -129,6 +130,15 @@
129130
"Go"
130131
]
131132
},
133+
{
134+
"id": "go.asm",
135+
"extensions": [
136+
".s"
137+
],
138+
"aliases": [
139+
"Go Assembly"
140+
]
141+
},
132142
{
133143
"id": "go.mod",
134144
"filenames": [

extension/src/goMode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export function isGoFile(document: vscode.TextDocument): boolean {
2121
export const GoDocumentSelector = [
2222
// gopls handles only file URIs.
2323
{ language: 'go', scheme: 'file' },
24+
{ language: 'go.asm', scheme: 'file' },
2425
{ language: 'go.mod', scheme: 'file' },
2526
{ language: 'go.sum', scheme: 'file' },
2627
{ language: 'go.work', scheme: 'file' },

0 commit comments

Comments
 (0)