Skip to content

Commit

Permalink
Merge pull request #618 from fendor/track-cabal-files
Browse files Browse the repository at this point in the history
Add tracking of cabal files
  • Loading branch information
July541 authored Aug 17, 2023
2 parents 4b38873 + 195468f commit c82127a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
},
"activationEvents": [
"onLanguage:haskell",
"onLanguage:literate haskell"
"onLanguage:literate haskell",
"onLanguage:cabal"
],
"main": "./dist/extension",
"contributes": {
Expand All @@ -49,6 +50,16 @@
".hs"
]
},
{
"id": "cabal",
"aliases": [
"Cabal"
],
"extensions": [
".cabal"
]
},

{
"id": "literate haskell",
"aliases": [
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
documentSelector: [
{ scheme: 'file', language: 'haskell', pattern: pat },
{ scheme: 'file', language: 'literate haskell', pattern: pat },
{ scheme: 'file', language: 'cabal', pattern: pat },
],
synchronize: {
// Synchronize the setting section 'haskell' to the server.
Expand Down

0 comments on commit c82127a

Please sign in to comment.