File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
7
7
## [ Unreleased]
8
8
9
9
- fix typo
10
+ - use absolute path for GHCi
10
11
11
12
## [ 0.1.2]
12
13
Original file line number Diff line number Diff line change 3
3
"displayName" : " Haskell Runner 2" ,
4
4
"description" : " Shortcut for GHCi and Stack" ,
5
5
"publisher" : " Meowcolm024" ,
6
- "version" : " 0.1.2 " ,
6
+ "version" : " 0.1.3 " ,
7
7
"license" : " BSD3" ,
8
8
"icon" : " images/hr2.png" ,
9
9
"engines" : {
Original file line number Diff line number Diff line change @@ -21,13 +21,11 @@ export async function activate(context: vscode.ExtensionContext) {
21
21
22
22
// GHCi command
23
23
let ghci = vscode . commands . registerCommand ( "runner2.ghci" , ( ) => {
24
- let folder = option . option ( vscode . workspace . workspaceFolders ) ;
25
24
let doc = option . option ( vscode . window . activeTextEditor ) . map ( e => e . document ) ;
26
- let filename =
27
- folder . flatmap ( f => doc
28
- . flatmap ( d => util . isHaskell ( d ) ? option . some ( d ) : option . none < vscode . TextDocument > ( ) )
29
- . map ( d => d . fileName . replace ( f [ 0 ] . uri . path + "/" , "" ) )
30
- . map ( s => `\"${ s } \"` ) ) ;
25
+ let filename = doc
26
+ . flatmap ( d => util . isHaskell ( d ) ? option . some ( d ) : option . none < vscode . TextDocument > ( ) )
27
+ . map ( s => `\"${ s . fileName } \"` ) ;
28
+ // currently at GHCi
31
29
if ( terminal . map ( t => t . name ) . contains ( "GHCi" ) ) {
32
30
filename . map ( f => terminal . unwrap ( ) . sendText ( stackproj ? ":r" : ( ":l " + f ) ) ) ;
33
31
} else {
You can’t perform that action at this time.
0 commit comments