Skip to content

Commit a668cbe

Browse files
authored
Remove outdated tasks.js and tasks.json (rescript-lang#6156)
* Remove outdated tasks.js and tasks.json * Remove BS_VSCODE
1 parent 379b4ae commit a668cbe

File tree

6 files changed

+2
-238
lines changed

6 files changed

+2
-238
lines changed

.vscode/tasks.json

-79
This file was deleted.

jscomp/ml/builtin_attributes.ml

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ let rec error_of_extension ext =
6161

6262
let cat s1 s2 =
6363
if s2 = "" then s1 else
64-
if Clflags.bs_vscode then s1 ^ " " ^ s2
6564
(* 2 spaces indentation for the next line *)
66-
else s1 ^ "\n " ^ s2
65+
s1 ^ "\n " ^ s2
6766

6867
let rec deprecated_of_attrs = function
6968
| [] -> None

jscomp/ml/clflags.ml

-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ let unboxed_types = ref false
6161

6262
type mli_status = Mli_exists | Mli_non_exists
6363
let assume_no_mli = ref Mli_non_exists
64-
let bs_vscode =
65-
try ignore @@ Sys.getenv "BS_VSCODE" ; true with _ -> false
66-
(* We get it from environment variable mostly due to
67-
we don't want to rebuild when flip on or off
68-
*)
6964
let dont_record_crc_unit : string option ref = ref None
7065
let bs_gentype = ref false
7166
let no_assert_false = ref false

jscomp/ml/clflags.mli

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ val reset_dump_state: unit -> unit
3838

3939
type mli_status = Mli_exists | Mli_non_exists
4040
val assume_no_mli : mli_status ref
41-
val bs_vscode : bool
4241
val dont_record_crc_unit : string option ref
4342
val bs_gentype : bool ref
4443
val no_assert_false : bool ref

jscomp/super_errors/super_main.ml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
(* the entry point. This is used by rescript_compiler_main.ml *)
22
let setup =
3-
lazy (match Sys.getenv_opt "BS_VSCODE" with
4-
| Some ("true" | "1") ->
5-
()
6-
| Some _ | None ->
7-
Super_location.setup ();
3+
lazy (Super_location.setup ();
84
Super_typetexp.setup ();
95
Super_typemod.setup ();
106
Super_typecore.setup ();

scripts/tasks.js

-146
This file was deleted.

0 commit comments

Comments
 (0)