Skip to content

Commit 8cbb551

Browse files
committed
Add tracking of cabal files
1 parent 5ca76c9 commit 8cbb551

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

package.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
},
3838
"activationEvents": [
3939
"onLanguage:haskell",
40-
"onLanguage:literate haskell"
40+
"onLanguage:literate haskell",
41+
"onLanguage:cabal"
4142
],
4243
"main": "./dist/extension",
4344
"contributes": {
@@ -52,6 +53,16 @@
5253
".hs"
5354
]
5455
},
56+
{
57+
"id": "cabal",
58+
"aliases": [
59+
"Cabal"
60+
],
61+
"extensions": [
62+
".cabal"
63+
]
64+
},
65+
5566
{
5667
"id": "literate haskell",
5768
"aliases": [

src/extension.ts

+1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
264264
documentSelector: [
265265
{ scheme: 'file', language: 'haskell', pattern: pat },
266266
{ scheme: 'file', language: 'literate haskell', pattern: pat },
267+
{ scheme: 'file', language: 'cabal', pattern: pat },
267268
],
268269
synchronize: {
269270
// Synchronize the setting section 'haskell' to the server.

0 commit comments

Comments
 (0)