File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
out
3
3
node_modules
4
4
client /server
5
- .vscode-test
5
+ .vscode-test
6
+ ** /* .vsix
Original file line number Diff line number Diff line change 1
1
import { fileURLToPath } from "url" ;
2
2
import { RequestMessage } from "vscode-languageserver" ;
3
3
import * as utils from "./utils" ;
4
+ import * as project from "./project" ;
4
5
import * as path from "path" ;
5
6
import { exec } from "child_process" ;
6
7
import fs from "fs" ;
@@ -15,7 +16,7 @@ export let binaryExists = fs.existsSync(binaryPath);
15
16
16
17
let findExecutable = ( uri : string ) => {
17
18
let filePath = fileURLToPath ( uri ) ;
18
- let projectRootPath = utils . findProjectRootOfFile ( filePath ) ;
19
+ let projectRootPath = project . findBscPath ( filePath ) ;
19
20
if ( projectRootPath == null || ! binaryExists ) {
20
21
return null ;
21
22
} else {
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import * as p from "vscode-languageserver-protocol";
5
5
import * as t from "vscode-languageserver-types" ;
6
6
import fs from "fs" ;
7
7
import * as os from "os" ;
8
+ import path from "path" ;
8
9
9
10
let tempFilePrefix = "rescript_format_file_" + process . pid + "_" ;
10
11
let tempFileId = 0 ;
You can’t perform that action at this time.
0 commit comments