Skip to content

Commit 4552da3

Browse files
committed
add activation event
1 parent 2d05e82 commit 4552da3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
88

99
- fix typo
1010
- use absolute path for GHCi
11+
- add activation event (in a stack project)
1112

1213
## [0.1.2]
1314

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"activationEvents": [
2121
"onLanguage:haskell",
2222
"onLanguage:literate haskell",
23+
"workspaceContains:stack.yaml",
2324
"onCommand:runner2.ghci"
2425
],
2526
"main": "./out/extension.js",

src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export async function activate(context: vscode.ExtensionContext) {
5555
util.statButton("Stack Test", "runner2.stacktest")
5656
);
5757
if (config.enableStackRun) {
58-
context.subscriptions.push(util.statButton("Stack Run", "runner2.stackrun"));
58+
context.subscriptions.push(
59+
util.statButton("Stack Run", "runner2.stackrun"));
5960
}
6061
}
6162

0 commit comments

Comments
 (0)