Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.

Commit adc2067

Browse files
committed
feat: activate on heex and surface files
Closes #31
1 parent 977d4e1 commit adc2067

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@
1818
},
1919
"categories": [
2020
"Programming Languages",
21-
"Linters"
21+
"Linters",
22+
"Formatters"
2223
],
2324
"keywords": [
2425
"elixir",
26+
"lsp",
27+
"ls",
28+
"nextls",
2529
"credo"
2630
],
2731
"activationEvents": [
28-
"onLanguage:elixir"
32+
"onLanguage:elixir",
33+
"onLanguage:phoenix-heex",
34+
"onLanguage:surface"
2935
],
3036
"main": "./dist/extension.js",
3137
"contributes": {

src/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ async function activateNextLS(
134134
throw new Error("boom");
135135
}
136136
const clientOptions: LanguageClientOptions = {
137-
documentSelector: [{ scheme: "file", language: "elixir" }],
137+
documentSelector: [
138+
{ scheme: "file", language: "elixir" },
139+
{ scheme: "file", language: "surface" },
140+
{ scheme: "file", language: "phoenix-heex" },
141+
],
138142
};
139143

140144
nextLSClient = new LanguageClient(

0 commit comments

Comments
 (0)