Skip to content

Commit c82127a

Browse files
authored
Merge pull request #618 from fendor/track-cabal-files
Add tracking of cabal files
2 parents 4b38873 + 195468f commit c82127a

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
@@ -34,7 +34,8 @@
3434
},
3535
"activationEvents": [
3636
"onLanguage:haskell",
37-
"onLanguage:literate haskell"
37+
"onLanguage:literate haskell",
38+
"onLanguage:cabal"
3839
],
3940
"main": "./dist/extension",
4041
"contributes": {
@@ -49,6 +50,16 @@
4950
".hs"
5051
]
5152
},
53+
{
54+
"id": "cabal",
55+
"aliases": [
56+
"Cabal"
57+
],
58+
"extensions": [
59+
".cabal"
60+
]
61+
},
62+
5263
{
5364
"id": "literate haskell",
5465
"aliases": [

src/extension.ts

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
259259
documentSelector: [
260260
{ scheme: 'file', language: 'haskell', pattern: pat },
261261
{ scheme: 'file', language: 'literate haskell', pattern: pat },
262+
{ scheme: 'file', language: 'cabal', pattern: pat },
262263
],
263264
synchronize: {
264265
// Synchronize the setting section 'haskell' to the server.

0 commit comments

Comments
 (0)