coc-sonarlint 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +282 -255
  2. package/package.json +23 -37
package/lib/index.js CHANGED
@@ -31,17 +31,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  // node_modules/expand-home-dir/index.js
32
32
  var require_expand_home_dir = __commonJS({
33
33
  "node_modules/expand-home-dir/index.js"(exports, module2) {
34
- var join3 = require("path").join;
34
+ var join4 = require("path").join;
35
35
  var homedir2 = process.env[process.platform == "win32" ? "USERPROFILE" : "HOME"];
36
36
  module2.exports = expandHomeDir2;
37
- function expandHomeDir2(path4) {
38
- if (!path4)
39
- return path4;
40
- if (path4 == "~")
37
+ function expandHomeDir2(path5) {
38
+ if (!path5)
39
+ return path5;
40
+ if (path5 == "~")
41
41
  return homedir2;
42
- if (path4.slice(0, 2) != "~/")
43
- return path4;
44
- return join3(homedir2, path4.slice(2));
42
+ if (path5.slice(0, 2) != "~/")
43
+ return path5;
44
+ return join4(homedir2, path5.slice(2));
45
45
  }
46
46
  }
47
47
  });
@@ -51,7 +51,7 @@ var require_which = __commonJS({
51
51
  "node_modules/which/which.js"(exports, module2) {
52
52
  module2.exports = which;
53
53
  which.sync = whichSync;
54
- var path4 = require("path");
54
+ var path5 = require("path");
55
55
  var fs4;
56
56
  var COLON = process.platform === "win32" ? ";" : ":";
57
57
  var isExe;
@@ -80,7 +80,7 @@ var require_which = __commonJS({
80
80
  (function F(i, l) {
81
81
  if (i === l)
82
82
  return cb(new Error("not found: " + cmd));
83
- var p = path4.resolve(pathEnv[i], cmd);
83
+ var p = path5.resolve(pathEnv[i], cmd);
84
84
  (function E(ii, ll) {
85
85
  if (ii === ll)
86
86
  return F(i + 1, l);
@@ -105,7 +105,7 @@ var require_which = __commonJS({
105
105
  pathExt.unshift("");
106
106
  }
107
107
  for (var i = 0, l = pathEnv.length; i < l; i++) {
108
- var p = path4.join(pathEnv[i], cmd);
108
+ var p = path5.join(pathEnv[i], cmd);
109
109
  for (var j = 0, ll = pathExt.length; j < ll; j++) {
110
110
  var cur = p + pathExt[j];
111
111
  var stat;
@@ -136,7 +136,7 @@ var require_which = __commonJS({
136
136
  var require_registry = __commonJS({
137
137
  "node_modules/winreg/lib/registry.js"(exports, module2) {
138
138
  var util = require("util");
139
- var path4 = require("path");
139
+ var path5 = require("path");
140
140
  var spawn2 = require("child_process").spawn;
141
141
  var log = function() {
142
142
  };
@@ -205,7 +205,7 @@ var require_registry = __commonJS({
205
205
  }
206
206
  function getRegExePath() {
207
207
  if (process.platform === "win32") {
208
- return path4.join(process.env.windir, "system32", "reg.exe");
208
+ return path5.join(process.env.windir, "system32", "reg.exe");
209
209
  } else {
210
210
  return "REG";
211
211
  }
@@ -765,7 +765,7 @@ var require_dist = __commonJS({
765
765
  return mod && mod.__esModule ? mod : { "default": mod };
766
766
  };
767
767
  var fs4 = __importStar(require("fs"));
768
- var path4 = __importStar(require("path"));
768
+ var path5 = __importStar(require("path"));
769
769
  var cp2 = __importStar(require("child_process"));
770
770
  var child_process_1 = require("child_process");
771
771
  var which_1 = __importDefault(require_which());
@@ -856,8 +856,8 @@ var require_dist = __commonJS({
856
856
  }
857
857
  }
858
858
  proposed = fs4.realpathSync(proposed);
859
- proposed = path4.dirname(proposed);
860
- var macUtility = path4.resolve(proposed, "java_home");
859
+ proposed = path5.dirname(proposed);
860
+ var macUtility = path5.resolve(proposed, "java_home");
861
861
  if (fs4.existsSync(macUtility)) {
862
862
  var buffer = void 0;
863
863
  try {
@@ -868,7 +868,7 @@ var require_dist = __commonJS({
868
868
  return resolve4(null);
869
869
  }
870
870
  }
871
- resolve4(path4.dirname(proposed));
871
+ resolve4(path5.dirname(proposed));
872
872
  });
873
873
  });
874
874
  }
@@ -947,7 +947,7 @@ var require_dist = __commonJS({
947
947
  });
948
948
  }
949
949
  function dirIsJavaHome(dir, javaFilename) {
950
- return fs4.existsSync("" + dir) && fs4.statSync(dir).isDirectory() && fs4.existsSync(path4.resolve(dir, "bin", javaFilename));
950
+ return fs4.existsSync("" + dir) && fs4.statSync(dir).isDirectory() && fs4.existsSync(path5.resolve(dir, "bin", javaFilename));
951
951
  }
952
952
  module2.exports = findJavaHome2;
953
953
  }
@@ -1039,7 +1039,7 @@ var require_polyfills = __commonJS({
1039
1039
  fs4.fstatSync = statFixSync(fs4.fstatSync);
1040
1040
  fs4.lstatSync = statFixSync(fs4.lstatSync);
1041
1041
  if (fs4.chmod && !fs4.lchmod) {
1042
- fs4.lchmod = function(path4, mode, cb) {
1042
+ fs4.lchmod = function(path5, mode, cb) {
1043
1043
  if (cb)
1044
1044
  process.nextTick(cb);
1045
1045
  };
@@ -1047,7 +1047,7 @@ var require_polyfills = __commonJS({
1047
1047
  };
1048
1048
  }
1049
1049
  if (fs4.chown && !fs4.lchown) {
1050
- fs4.lchown = function(path4, uid, gid, cb) {
1050
+ fs4.lchown = function(path5, uid, gid, cb) {
1051
1051
  if (cb)
1052
1052
  process.nextTick(cb);
1053
1053
  };
@@ -1118,9 +1118,9 @@ var require_polyfills = __commonJS({
1118
1118
  };
1119
1119
  }(fs4.readSync);
1120
1120
  function patchLchmod(fs5) {
1121
- fs5.lchmod = function(path4, mode, callback) {
1121
+ fs5.lchmod = function(path5, mode, callback) {
1122
1122
  fs5.open(
1123
- path4,
1123
+ path5,
1124
1124
  constants.O_WRONLY | constants.O_SYMLINK,
1125
1125
  mode,
1126
1126
  function(err, fd) {
@@ -1138,8 +1138,8 @@ var require_polyfills = __commonJS({
1138
1138
  }
1139
1139
  );
1140
1140
  };
1141
- fs5.lchmodSync = function(path4, mode) {
1142
- var fd = fs5.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
1141
+ fs5.lchmodSync = function(path5, mode) {
1142
+ var fd = fs5.openSync(path5, constants.O_WRONLY | constants.O_SYMLINK, mode);
1143
1143
  var threw = true;
1144
1144
  var ret;
1145
1145
  try {
@@ -1160,8 +1160,8 @@ var require_polyfills = __commonJS({
1160
1160
  }
1161
1161
  function patchLutimes(fs5) {
1162
1162
  if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
1163
- fs5.lutimes = function(path4, at, mt, cb) {
1164
- fs5.open(path4, constants.O_SYMLINK, function(er, fd) {
1163
+ fs5.lutimes = function(path5, at, mt, cb) {
1164
+ fs5.open(path5, constants.O_SYMLINK, function(er, fd) {
1165
1165
  if (er) {
1166
1166
  if (cb)
1167
1167
  cb(er);
@@ -1175,8 +1175,8 @@ var require_polyfills = __commonJS({
1175
1175
  });
1176
1176
  });
1177
1177
  };
1178
- fs5.lutimesSync = function(path4, at, mt) {
1179
- var fd = fs5.openSync(path4, constants.O_SYMLINK);
1178
+ fs5.lutimesSync = function(path5, at, mt) {
1179
+ var fd = fs5.openSync(path5, constants.O_SYMLINK);
1180
1180
  var ret;
1181
1181
  var threw = true;
1182
1182
  try {
@@ -1312,12 +1312,12 @@ var require_legacy_streams = __commonJS({
1312
1312
  ReadStream,
1313
1313
  WriteStream
1314
1314
  };
1315
- function ReadStream(path4, options) {
1315
+ function ReadStream(path5, options) {
1316
1316
  if (!(this instanceof ReadStream))
1317
- return new ReadStream(path4, options);
1317
+ return new ReadStream(path5, options);
1318
1318
  Stream.call(this);
1319
1319
  var self = this;
1320
- this.path = path4;
1320
+ this.path = path5;
1321
1321
  this.fd = null;
1322
1322
  this.readable = true;
1323
1323
  this.paused = false;
@@ -1363,11 +1363,11 @@ var require_legacy_streams = __commonJS({
1363
1363
  self._read();
1364
1364
  });
1365
1365
  }
1366
- function WriteStream(path4, options) {
1366
+ function WriteStream(path5, options) {
1367
1367
  if (!(this instanceof WriteStream))
1368
- return new WriteStream(path4, options);
1368
+ return new WriteStream(path5, options);
1369
1369
  Stream.call(this);
1370
- this.path = path4;
1370
+ this.path = path5;
1371
1371
  this.fd = null;
1372
1372
  this.writable = true;
1373
1373
  this.flags = "w";
@@ -1510,14 +1510,14 @@ var require_graceful_fs = __commonJS({
1510
1510
  fs5.createWriteStream = createWriteStream;
1511
1511
  var fs$readFile = fs5.readFile;
1512
1512
  fs5.readFile = readFile;
1513
- function readFile(path4, options, cb) {
1513
+ function readFile(path5, options, cb) {
1514
1514
  if (typeof options === "function")
1515
1515
  cb = options, options = null;
1516
- return go$readFile(path4, options, cb);
1517
- function go$readFile(path5, options2, cb2, startTime) {
1518
- return fs$readFile(path5, options2, function(err) {
1516
+ return go$readFile(path5, options, cb);
1517
+ function go$readFile(path6, options2, cb2, startTime) {
1518
+ return fs$readFile(path6, options2, function(err) {
1519
1519
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1520
- enqueue([go$readFile, [path5, options2, cb2], err, startTime || Date.now(), Date.now()]);
1520
+ enqueue([go$readFile, [path6, options2, cb2], err, startTime || Date.now(), Date.now()]);
1521
1521
  else {
1522
1522
  if (typeof cb2 === "function")
1523
1523
  cb2.apply(this, arguments);
@@ -1527,14 +1527,14 @@ var require_graceful_fs = __commonJS({
1527
1527
  }
1528
1528
  var fs$writeFile = fs5.writeFile;
1529
1529
  fs5.writeFile = writeFile;
1530
- function writeFile(path4, data, options, cb) {
1530
+ function writeFile(path5, data, options, cb) {
1531
1531
  if (typeof options === "function")
1532
1532
  cb = options, options = null;
1533
- return go$writeFile(path4, data, options, cb);
1534
- function go$writeFile(path5, data2, options2, cb2, startTime) {
1535
- return fs$writeFile(path5, data2, options2, function(err) {
1533
+ return go$writeFile(path5, data, options, cb);
1534
+ function go$writeFile(path6, data2, options2, cb2, startTime) {
1535
+ return fs$writeFile(path6, data2, options2, function(err) {
1536
1536
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1537
- enqueue([go$writeFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1537
+ enqueue([go$writeFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1538
1538
  else {
1539
1539
  if (typeof cb2 === "function")
1540
1540
  cb2.apply(this, arguments);
@@ -1545,14 +1545,14 @@ var require_graceful_fs = __commonJS({
1545
1545
  var fs$appendFile = fs5.appendFile;
1546
1546
  if (fs$appendFile)
1547
1547
  fs5.appendFile = appendFile;
1548
- function appendFile(path4, data, options, cb) {
1548
+ function appendFile(path5, data, options, cb) {
1549
1549
  if (typeof options === "function")
1550
1550
  cb = options, options = null;
1551
- return go$appendFile(path4, data, options, cb);
1552
- function go$appendFile(path5, data2, options2, cb2, startTime) {
1553
- return fs$appendFile(path5, data2, options2, function(err) {
1551
+ return go$appendFile(path5, data, options, cb);
1552
+ function go$appendFile(path6, data2, options2, cb2, startTime) {
1553
+ return fs$appendFile(path6, data2, options2, function(err) {
1554
1554
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1555
- enqueue([go$appendFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1555
+ enqueue([go$appendFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1556
1556
  else {
1557
1557
  if (typeof cb2 === "function")
1558
1558
  cb2.apply(this, arguments);
@@ -1583,31 +1583,31 @@ var require_graceful_fs = __commonJS({
1583
1583
  var fs$readdir = fs5.readdir;
1584
1584
  fs5.readdir = readdir;
1585
1585
  var noReaddirOptionVersions = /^v[0-5]\./;
1586
- function readdir(path4, options, cb) {
1586
+ function readdir(path5, options, cb) {
1587
1587
  if (typeof options === "function")
1588
1588
  cb = options, options = null;
1589
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path5, options2, cb2, startTime) {
1590
- return fs$readdir(path5, fs$readdirCallback(
1591
- path5,
1589
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path6, options2, cb2, startTime) {
1590
+ return fs$readdir(path6, fs$readdirCallback(
1591
+ path6,
1592
1592
  options2,
1593
1593
  cb2,
1594
1594
  startTime
1595
1595
  ));
1596
- } : function go$readdir2(path5, options2, cb2, startTime) {
1597
- return fs$readdir(path5, options2, fs$readdirCallback(
1598
- path5,
1596
+ } : function go$readdir2(path6, options2, cb2, startTime) {
1597
+ return fs$readdir(path6, options2, fs$readdirCallback(
1598
+ path6,
1599
1599
  options2,
1600
1600
  cb2,
1601
1601
  startTime
1602
1602
  ));
1603
1603
  };
1604
- return go$readdir(path4, options, cb);
1605
- function fs$readdirCallback(path5, options2, cb2, startTime) {
1604
+ return go$readdir(path5, options, cb);
1605
+ function fs$readdirCallback(path6, options2, cb2, startTime) {
1606
1606
  return function(err, files) {
1607
1607
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1608
1608
  enqueue([
1609
1609
  go$readdir,
1610
- [path5, options2, cb2],
1610
+ [path6, options2, cb2],
1611
1611
  err,
1612
1612
  startTime || Date.now(),
1613
1613
  Date.now()
@@ -1678,7 +1678,7 @@ var require_graceful_fs = __commonJS({
1678
1678
  enumerable: true,
1679
1679
  configurable: true
1680
1680
  });
1681
- function ReadStream(path4, options) {
1681
+ function ReadStream(path5, options) {
1682
1682
  if (this instanceof ReadStream)
1683
1683
  return fs$ReadStream.apply(this, arguments), this;
1684
1684
  else
@@ -1698,7 +1698,7 @@ var require_graceful_fs = __commonJS({
1698
1698
  }
1699
1699
  });
1700
1700
  }
1701
- function WriteStream(path4, options) {
1701
+ function WriteStream(path5, options) {
1702
1702
  if (this instanceof WriteStream)
1703
1703
  return fs$WriteStream.apply(this, arguments), this;
1704
1704
  else
@@ -1716,22 +1716,22 @@ var require_graceful_fs = __commonJS({
1716
1716
  }
1717
1717
  });
1718
1718
  }
1719
- function createReadStream(path4, options) {
1720
- return new fs5.ReadStream(path4, options);
1719
+ function createReadStream(path5, options) {
1720
+ return new fs5.ReadStream(path5, options);
1721
1721
  }
1722
- function createWriteStream(path4, options) {
1723
- return new fs5.WriteStream(path4, options);
1722
+ function createWriteStream(path5, options) {
1723
+ return new fs5.WriteStream(path5, options);
1724
1724
  }
1725
1725
  var fs$open = fs5.open;
1726
1726
  fs5.open = open;
1727
- function open(path4, flags, mode, cb) {
1727
+ function open(path5, flags, mode, cb) {
1728
1728
  if (typeof mode === "function")
1729
1729
  cb = mode, mode = null;
1730
- return go$open(path4, flags, mode, cb);
1731
- function go$open(path5, flags2, mode2, cb2, startTime) {
1732
- return fs$open(path5, flags2, mode2, function(err, fd) {
1730
+ return go$open(path5, flags, mode, cb);
1731
+ function go$open(path6, flags2, mode2, cb2, startTime) {
1732
+ return fs$open(path6, flags2, mode2, function(err, fd) {
1733
1733
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1734
- enqueue([go$open, [path5, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1734
+ enqueue([go$open, [path6, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1735
1735
  else {
1736
1736
  if (typeof cb2 === "function")
1737
1737
  cb2.apply(this, arguments);
@@ -1887,9 +1887,9 @@ var require_fs = __commonJS({
1887
1887
  var require_win32 = __commonJS({
1888
1888
  "node_modules/fs-extra/lib/mkdirs/win32.js"(exports, module2) {
1889
1889
  "use strict";
1890
- var path4 = require("path");
1890
+ var path5 = require("path");
1891
1891
  function getRootPath(p) {
1892
- p = path4.normalize(path4.resolve(p)).split(path4.sep);
1892
+ p = path5.normalize(path5.resolve(p)).split(path5.sep);
1893
1893
  if (p.length > 0)
1894
1894
  return p[0];
1895
1895
  return null;
@@ -1912,7 +1912,7 @@ var require_mkdirs = __commonJS({
1912
1912
  "node_modules/fs-extra/lib/mkdirs/mkdirs.js"(exports, module2) {
1913
1913
  "use strict";
1914
1914
  var fs4 = require_graceful_fs();
1915
- var path4 = require("path");
1915
+ var path5 = require("path");
1916
1916
  var invalidWin32Path = require_win32().invalidWin32Path;
1917
1917
  var o777 = parseInt("0777", 8);
1918
1918
  function mkdirs(p, opts, callback, made) {
@@ -1936,7 +1936,7 @@ var require_mkdirs = __commonJS({
1936
1936
  made = null;
1937
1937
  callback = callback || function() {
1938
1938
  };
1939
- p = path4.resolve(p);
1939
+ p = path5.resolve(p);
1940
1940
  xfs.mkdir(p, mode, (er) => {
1941
1941
  if (!er) {
1942
1942
  made = made || p;
@@ -1944,9 +1944,9 @@ var require_mkdirs = __commonJS({
1944
1944
  }
1945
1945
  switch (er.code) {
1946
1946
  case "ENOENT":
1947
- if (path4.dirname(p) === p)
1947
+ if (path5.dirname(p) === p)
1948
1948
  return callback(er);
1949
- mkdirs(path4.dirname(p), opts, (er2, made2) => {
1949
+ mkdirs(path5.dirname(p), opts, (er2, made2) => {
1950
1950
  if (er2)
1951
1951
  callback(er2, made2);
1952
1952
  else
@@ -1973,7 +1973,7 @@ var require_mkdirs_sync = __commonJS({
1973
1973
  "node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(exports, module2) {
1974
1974
  "use strict";
1975
1975
  var fs4 = require_graceful_fs();
1976
- var path4 = require("path");
1976
+ var path5 = require("path");
1977
1977
  var invalidWin32Path = require_win32().invalidWin32Path;
1978
1978
  var o777 = parseInt("0777", 8);
1979
1979
  function mkdirsSync(p, opts, made) {
@@ -1992,15 +1992,15 @@ var require_mkdirs_sync = __commonJS({
1992
1992
  }
1993
1993
  if (!made)
1994
1994
  made = null;
1995
- p = path4.resolve(p);
1995
+ p = path5.resolve(p);
1996
1996
  try {
1997
1997
  xfs.mkdirSync(p, mode);
1998
1998
  made = made || p;
1999
1999
  } catch (err0) {
2000
2000
  if (err0.code === "ENOENT") {
2001
- if (path4.dirname(p) === p)
2001
+ if (path5.dirname(p) === p)
2002
2002
  throw err0;
2003
- made = mkdirsSync(path4.dirname(p), opts, made);
2003
+ made = mkdirsSync(path5.dirname(p), opts, made);
2004
2004
  mkdirsSync(p, opts, made);
2005
2005
  } else {
2006
2006
  let stat;
@@ -2043,10 +2043,10 @@ var require_utimes = __commonJS({
2043
2043
  "use strict";
2044
2044
  var fs4 = require_graceful_fs();
2045
2045
  var os2 = require("os");
2046
- var path4 = require("path");
2046
+ var path5 = require("path");
2047
2047
  function hasMillisResSync() {
2048
- let tmpfile = path4.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
2049
- tmpfile = path4.join(os2.tmpdir(), tmpfile);
2048
+ let tmpfile = path5.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
2049
+ tmpfile = path5.join(os2.tmpdir(), tmpfile);
2050
2050
  const d = new Date(1435410243862);
2051
2051
  fs4.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
2052
2052
  const fd = fs4.openSync(tmpfile, "r+");
@@ -2055,8 +2055,8 @@ var require_utimes = __commonJS({
2055
2055
  return fs4.statSync(tmpfile).mtime > 1435410243e3;
2056
2056
  }
2057
2057
  function hasMillisRes(callback) {
2058
- let tmpfile = path4.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
2059
- tmpfile = path4.join(os2.tmpdir(), tmpfile);
2058
+ let tmpfile = path5.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
2059
+ tmpfile = path5.join(os2.tmpdir(), tmpfile);
2060
2060
  const d = new Date(1435410243862);
2061
2061
  fs4.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
2062
2062
  if (err)
@@ -2089,8 +2089,8 @@ var require_utimes = __commonJS({
2089
2089
  throw new Error("fs-extra: timeRemoveMillis() unknown parameter type");
2090
2090
  }
2091
2091
  }
2092
- function utimesMillis(path5, atime, mtime, callback) {
2093
- fs4.open(path5, "r+", (err, fd) => {
2092
+ function utimesMillis(path6, atime, mtime, callback) {
2093
+ fs4.open(path6, "r+", (err, fd) => {
2094
2094
  if (err)
2095
2095
  return callback(err);
2096
2096
  fs4.futimes(fd, atime, mtime, (futimesErr) => {
@@ -2101,8 +2101,8 @@ var require_utimes = __commonJS({
2101
2101
  });
2102
2102
  });
2103
2103
  }
2104
- function utimesMillisSync(path5, atime, mtime) {
2105
- const fd = fs4.openSync(path5, "r+");
2104
+ function utimesMillisSync(path6, atime, mtime) {
2105
+ const fd = fs4.openSync(path6, "r+");
2106
2106
  fs4.futimesSync(fd, atime, mtime);
2107
2107
  return fs4.closeSync(fd);
2108
2108
  }
@@ -2121,7 +2121,7 @@ var require_stat = __commonJS({
2121
2121
  "node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
2122
2122
  "use strict";
2123
2123
  var fs4 = require_graceful_fs();
2124
- var path4 = require("path");
2124
+ var path5 = require("path");
2125
2125
  var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
2126
2126
  var NODE_VERSION_MINOR_WITH_BIGINT = 5;
2127
2127
  var NODE_VERSION_PATCH_WITH_BIGINT = 0;
@@ -2217,9 +2217,9 @@ var require_stat = __commonJS({
2217
2217
  return { srcStat, destStat };
2218
2218
  }
2219
2219
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
2220
- const srcParent = path4.resolve(path4.dirname(src));
2221
- const destParent = path4.resolve(path4.dirname(dest));
2222
- if (destParent === srcParent || destParent === path4.parse(destParent).root)
2220
+ const srcParent = path5.resolve(path5.dirname(src));
2221
+ const destParent = path5.resolve(path5.dirname(dest));
2222
+ if (destParent === srcParent || destParent === path5.parse(destParent).root)
2223
2223
  return cb();
2224
2224
  if (nodeSupportsBigInt()) {
2225
2225
  fs4.stat(destParent, { bigint: true }, (err, destStat) => {
@@ -2248,9 +2248,9 @@ var require_stat = __commonJS({
2248
2248
  }
2249
2249
  }
2250
2250
  function checkParentPathsSync(src, srcStat, dest, funcName) {
2251
- const srcParent = path4.resolve(path4.dirname(src));
2252
- const destParent = path4.resolve(path4.dirname(dest));
2253
- if (destParent === srcParent || destParent === path4.parse(destParent).root)
2251
+ const srcParent = path5.resolve(path5.dirname(src));
2252
+ const destParent = path5.resolve(path5.dirname(dest));
2253
+ if (destParent === srcParent || destParent === path5.parse(destParent).root)
2254
2254
  return;
2255
2255
  let destStat;
2256
2256
  try {
@@ -2270,8 +2270,8 @@ var require_stat = __commonJS({
2270
2270
  return checkParentPathsSync(src, srcStat, destParent, funcName);
2271
2271
  }
2272
2272
  function isSrcSubdir(src, dest) {
2273
- const srcArr = path4.resolve(src).split(path4.sep).filter((i) => i);
2274
- const destArr = path4.resolve(dest).split(path4.sep).filter((i) => i);
2273
+ const srcArr = path5.resolve(src).split(path5.sep).filter((i) => i);
2274
+ const destArr = path5.resolve(dest).split(path5.sep).filter((i) => i);
2275
2275
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
2276
2276
  }
2277
2277
  function errMsg(src, dest, funcName) {
@@ -2309,7 +2309,7 @@ var require_copy_sync = __commonJS({
2309
2309
  "node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module2) {
2310
2310
  "use strict";
2311
2311
  var fs4 = require_graceful_fs();
2312
- var path4 = require("path");
2312
+ var path5 = require("path");
2313
2313
  var mkdirpSync = require_mkdirs2().mkdirsSync;
2314
2314
  var utimesSync = require_utimes().utimesMillisSync;
2315
2315
  var stat = require_stat();
@@ -2332,7 +2332,7 @@ var require_copy_sync = __commonJS({
2332
2332
  function handleFilterAndCopy(destStat, src, dest, opts) {
2333
2333
  if (opts.filter && !opts.filter(src, dest))
2334
2334
  return;
2335
- const destParent = path4.dirname(dest);
2335
+ const destParent = path5.dirname(dest);
2336
2336
  if (!fs4.existsSync(destParent))
2337
2337
  mkdirpSync(destParent);
2338
2338
  return startCopy(destStat, src, dest, opts);
@@ -2343,8 +2343,8 @@ var require_copy_sync = __commonJS({
2343
2343
  return getStats(destStat, src, dest, opts);
2344
2344
  }
2345
2345
  function getStats(destStat, src, dest, opts) {
2346
- const statSync2 = opts.dereference ? fs4.statSync : fs4.lstatSync;
2347
- const srcStat = statSync2(src);
2346
+ const statSync3 = opts.dereference ? fs4.statSync : fs4.lstatSync;
2347
+ const srcStat = statSync3(src);
2348
2348
  if (srcStat.isDirectory())
2349
2349
  return onDir(srcStat, destStat, src, dest, opts);
2350
2350
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())
@@ -2409,15 +2409,15 @@ var require_copy_sync = __commonJS({
2409
2409
  fs4.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
2410
2410
  }
2411
2411
  function copyDirItem(item, src, dest, opts) {
2412
- const srcItem = path4.join(src, item);
2413
- const destItem = path4.join(dest, item);
2412
+ const srcItem = path5.join(src, item);
2413
+ const destItem = path5.join(dest, item);
2414
2414
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy");
2415
2415
  return startCopy(destStat, srcItem, destItem, opts);
2416
2416
  }
2417
2417
  function onLink(destStat, src, dest, opts) {
2418
2418
  let resolvedSrc = fs4.readlinkSync(src);
2419
2419
  if (opts.dereference) {
2420
- resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
2420
+ resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
2421
2421
  }
2422
2422
  if (!destStat) {
2423
2423
  return fs4.symlinkSync(resolvedSrc, dest);
@@ -2431,7 +2431,7 @@ var require_copy_sync = __commonJS({
2431
2431
  throw err;
2432
2432
  }
2433
2433
  if (opts.dereference) {
2434
- resolvedDest = path4.resolve(process.cwd(), resolvedDest);
2434
+ resolvedDest = path5.resolve(process.cwd(), resolvedDest);
2435
2435
  }
2436
2436
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
2437
2437
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -2466,8 +2466,8 @@ var require_path_exists = __commonJS({
2466
2466
  "use strict";
2467
2467
  var u = require_universalify().fromPromise;
2468
2468
  var fs4 = require_fs();
2469
- function pathExists2(path4) {
2470
- return fs4.access(path4).then(() => true).catch(() => false);
2469
+ function pathExists2(path5) {
2470
+ return fs4.access(path5).then(() => true).catch(() => false);
2471
2471
  }
2472
2472
  module2.exports = {
2473
2473
  pathExists: u(pathExists2),
@@ -2481,7 +2481,7 @@ var require_copy = __commonJS({
2481
2481
  "node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
2482
2482
  "use strict";
2483
2483
  var fs4 = require_graceful_fs();
2484
- var path4 = require("path");
2484
+ var path5 = require("path");
2485
2485
  var mkdirp = require_mkdirs2().mkdirs;
2486
2486
  var pathExists2 = require_path_exists().pathExists;
2487
2487
  var utimes = require_utimes().utimesMillis;
@@ -2517,7 +2517,7 @@ var require_copy = __commonJS({
2517
2517
  });
2518
2518
  }
2519
2519
  function checkParentDir(destStat, src, dest, opts, cb) {
2520
- const destParent = path4.dirname(dest);
2520
+ const destParent = path5.dirname(dest);
2521
2521
  pathExists2(destParent, (err, dirExists) => {
2522
2522
  if (err)
2523
2523
  return cb(err);
@@ -2632,8 +2632,8 @@ var require_copy = __commonJS({
2632
2632
  return copyDirItem(items, item, src, dest, opts, cb);
2633
2633
  }
2634
2634
  function copyDirItem(items, item, src, dest, opts, cb) {
2635
- const srcItem = path4.join(src, item);
2636
- const destItem = path4.join(dest, item);
2635
+ const srcItem = path5.join(src, item);
2636
+ const destItem = path5.join(dest, item);
2637
2637
  stat.checkPaths(srcItem, destItem, "copy", (err, stats) => {
2638
2638
  if (err)
2639
2639
  return cb(err);
@@ -2650,7 +2650,7 @@ var require_copy = __commonJS({
2650
2650
  if (err)
2651
2651
  return cb(err);
2652
2652
  if (opts.dereference) {
2653
- resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
2653
+ resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
2654
2654
  }
2655
2655
  if (!destStat) {
2656
2656
  return fs4.symlink(resolvedSrc, dest, cb);
@@ -2662,7 +2662,7 @@ var require_copy = __commonJS({
2662
2662
  return cb(err2);
2663
2663
  }
2664
2664
  if (opts.dereference) {
2665
- resolvedDest = path4.resolve(process.cwd(), resolvedDest);
2665
+ resolvedDest = path5.resolve(process.cwd(), resolvedDest);
2666
2666
  }
2667
2667
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
2668
2668
  return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
@@ -2702,7 +2702,7 @@ var require_rimraf = __commonJS({
2702
2702
  "node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) {
2703
2703
  "use strict";
2704
2704
  var fs4 = require_graceful_fs();
2705
- var path4 = require("path");
2705
+ var path5 = require("path");
2706
2706
  var assert = require("assert");
2707
2707
  var isWindows2 = process.platform === "win32";
2708
2708
  function defaults(options) {
@@ -2859,7 +2859,7 @@ var require_rimraf = __commonJS({
2859
2859
  if (n === 0)
2860
2860
  return options.rmdir(p, cb);
2861
2861
  files.forEach((f) => {
2862
- rimraf(path4.join(p, f), options, (er2) => {
2862
+ rimraf(path5.join(p, f), options, (er2) => {
2863
2863
  if (errState) {
2864
2864
  return;
2865
2865
  }
@@ -2928,7 +2928,7 @@ var require_rimraf = __commonJS({
2928
2928
  function rmkidsSync(p, options) {
2929
2929
  assert(p);
2930
2930
  assert(options);
2931
- options.readdirSync(p).forEach((f) => rimrafSync(path4.join(p, f), options));
2931
+ options.readdirSync(p).forEach((f) => rimrafSync(path5.join(p, f), options));
2932
2932
  if (isWindows2) {
2933
2933
  const startTime = Date.now();
2934
2934
  do {
@@ -2967,7 +2967,7 @@ var require_empty = __commonJS({
2967
2967
  "use strict";
2968
2968
  var u = require_universalify().fromCallback;
2969
2969
  var fs4 = require_graceful_fs();
2970
- var path4 = require("path");
2970
+ var path5 = require("path");
2971
2971
  var mkdir = require_mkdirs2();
2972
2972
  var remove2 = require_remove();
2973
2973
  var emptyDir = u(function emptyDir2(dir, callback) {
@@ -2976,7 +2976,7 @@ var require_empty = __commonJS({
2976
2976
  fs4.readdir(dir, (err, items) => {
2977
2977
  if (err)
2978
2978
  return mkdir.mkdirs(dir, callback);
2979
- items = items.map((item) => path4.join(dir, item));
2979
+ items = items.map((item) => path5.join(dir, item));
2980
2980
  deleteItem();
2981
2981
  function deleteItem() {
2982
2982
  const item = items.pop();
@@ -2998,7 +2998,7 @@ var require_empty = __commonJS({
2998
2998
  return mkdir.mkdirsSync(dir);
2999
2999
  }
3000
3000
  items.forEach((item) => {
3001
- item = path4.join(dir, item);
3001
+ item = path5.join(dir, item);
3002
3002
  remove2.removeSync(item);
3003
3003
  });
3004
3004
  }
@@ -3016,7 +3016,7 @@ var require_file = __commonJS({
3016
3016
  "node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
3017
3017
  "use strict";
3018
3018
  var u = require_universalify().fromCallback;
3019
- var path4 = require("path");
3019
+ var path5 = require("path");
3020
3020
  var fs4 = require_graceful_fs();
3021
3021
  var mkdir = require_mkdirs2();
3022
3022
  var pathExists2 = require_path_exists().pathExists;
@@ -3031,7 +3031,7 @@ var require_file = __commonJS({
3031
3031
  fs4.stat(file, (err, stats) => {
3032
3032
  if (!err && stats.isFile())
3033
3033
  return callback();
3034
- const dir = path4.dirname(file);
3034
+ const dir = path5.dirname(file);
3035
3035
  pathExists2(dir, (err2, dirExists) => {
3036
3036
  if (err2)
3037
3037
  return callback(err2);
@@ -3053,7 +3053,7 @@ var require_file = __commonJS({
3053
3053
  }
3054
3054
  if (stats && stats.isFile())
3055
3055
  return;
3056
- const dir = path4.dirname(file);
3056
+ const dir = path5.dirname(file);
3057
3057
  if (!fs4.existsSync(dir)) {
3058
3058
  mkdir.mkdirsSync(dir);
3059
3059
  }
@@ -3071,7 +3071,7 @@ var require_link = __commonJS({
3071
3071
  "node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
3072
3072
  "use strict";
3073
3073
  var u = require_universalify().fromCallback;
3074
- var path4 = require("path");
3074
+ var path5 = require("path");
3075
3075
  var fs4 = require_graceful_fs();
3076
3076
  var mkdir = require_mkdirs2();
3077
3077
  var pathExists2 = require_path_exists().pathExists;
@@ -3093,7 +3093,7 @@ var require_link = __commonJS({
3093
3093
  err2.message = err2.message.replace("lstat", "ensureLink");
3094
3094
  return callback(err2);
3095
3095
  }
3096
- const dir = path4.dirname(dstpath);
3096
+ const dir = path5.dirname(dstpath);
3097
3097
  pathExists2(dir, (err3, dirExists) => {
3098
3098
  if (err3)
3099
3099
  return callback(err3);
@@ -3118,7 +3118,7 @@ var require_link = __commonJS({
3118
3118
  err.message = err.message.replace("lstat", "ensureLink");
3119
3119
  throw err;
3120
3120
  }
3121
- const dir = path4.dirname(dstpath);
3121
+ const dir = path5.dirname(dstpath);
3122
3122
  const dirExists = fs4.existsSync(dir);
3123
3123
  if (dirExists)
3124
3124
  return fs4.linkSync(srcpath, dstpath);
@@ -3136,11 +3136,11 @@ var require_link = __commonJS({
3136
3136
  var require_symlink_paths = __commonJS({
3137
3137
  "node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
3138
3138
  "use strict";
3139
- var path4 = require("path");
3139
+ var path5 = require("path");
3140
3140
  var fs4 = require_graceful_fs();
3141
3141
  var pathExists2 = require_path_exists().pathExists;
3142
3142
  function symlinkPaths(srcpath, dstpath, callback) {
3143
- if (path4.isAbsolute(srcpath)) {
3143
+ if (path5.isAbsolute(srcpath)) {
3144
3144
  return fs4.lstat(srcpath, (err) => {
3145
3145
  if (err) {
3146
3146
  err.message = err.message.replace("lstat", "ensureSymlink");
@@ -3152,8 +3152,8 @@ var require_symlink_paths = __commonJS({
3152
3152
  });
3153
3153
  });
3154
3154
  } else {
3155
- const dstdir = path4.dirname(dstpath);
3156
- const relativeToDst = path4.join(dstdir, srcpath);
3155
+ const dstdir = path5.dirname(dstpath);
3156
+ const relativeToDst = path5.join(dstdir, srcpath);
3157
3157
  return pathExists2(relativeToDst, (err, exists) => {
3158
3158
  if (err)
3159
3159
  return callback(err);
@@ -3170,7 +3170,7 @@ var require_symlink_paths = __commonJS({
3170
3170
  }
3171
3171
  return callback(null, {
3172
3172
  "toCwd": srcpath,
3173
- "toDst": path4.relative(dstdir, srcpath)
3173
+ "toDst": path5.relative(dstdir, srcpath)
3174
3174
  });
3175
3175
  });
3176
3176
  }
@@ -3179,7 +3179,7 @@ var require_symlink_paths = __commonJS({
3179
3179
  }
3180
3180
  function symlinkPathsSync(srcpath, dstpath) {
3181
3181
  let exists;
3182
- if (path4.isAbsolute(srcpath)) {
3182
+ if (path5.isAbsolute(srcpath)) {
3183
3183
  exists = fs4.existsSync(srcpath);
3184
3184
  if (!exists)
3185
3185
  throw new Error("absolute srcpath does not exist");
@@ -3188,8 +3188,8 @@ var require_symlink_paths = __commonJS({
3188
3188
  "toDst": srcpath
3189
3189
  };
3190
3190
  } else {
3191
- const dstdir = path4.dirname(dstpath);
3192
- const relativeToDst = path4.join(dstdir, srcpath);
3191
+ const dstdir = path5.dirname(dstpath);
3192
+ const relativeToDst = path5.join(dstdir, srcpath);
3193
3193
  exists = fs4.existsSync(relativeToDst);
3194
3194
  if (exists) {
3195
3195
  return {
@@ -3202,7 +3202,7 @@ var require_symlink_paths = __commonJS({
3202
3202
  throw new Error("relative srcpath does not exist");
3203
3203
  return {
3204
3204
  "toCwd": srcpath,
3205
- "toDst": path4.relative(dstdir, srcpath)
3205
+ "toDst": path5.relative(dstdir, srcpath)
3206
3206
  };
3207
3207
  }
3208
3208
  }
@@ -3254,7 +3254,7 @@ var require_symlink = __commonJS({
3254
3254
  "node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
3255
3255
  "use strict";
3256
3256
  var u = require_universalify().fromCallback;
3257
- var path4 = require("path");
3257
+ var path5 = require("path");
3258
3258
  var fs4 = require_graceful_fs();
3259
3259
  var _mkdirs = require_mkdirs2();
3260
3260
  var mkdirs = _mkdirs.mkdirs;
@@ -3281,7 +3281,7 @@ var require_symlink = __commonJS({
3281
3281
  symlinkType(relative.toCwd, type, (err3, type2) => {
3282
3282
  if (err3)
3283
3283
  return callback(err3);
3284
- const dir = path4.dirname(dstpath);
3284
+ const dir = path5.dirname(dstpath);
3285
3285
  pathExists2(dir, (err4, dirExists) => {
3286
3286
  if (err4)
3287
3287
  return callback(err4);
@@ -3304,7 +3304,7 @@ var require_symlink = __commonJS({
3304
3304
  const relative = symlinkPathsSync(srcpath, dstpath);
3305
3305
  srcpath = relative.toDst;
3306
3306
  type = symlinkTypeSync(relative.toCwd, type);
3307
- const dir = path4.dirname(dstpath);
3307
+ const dir = path5.dirname(dstpath);
3308
3308
  const exists = fs4.existsSync(dir);
3309
3309
  if (exists)
3310
3310
  return fs4.symlinkSync(srcpath, dstpath, type);
@@ -3478,7 +3478,7 @@ var require_jsonfile2 = __commonJS({
3478
3478
  var require_output_json = __commonJS({
3479
3479
  "node_modules/fs-extra/lib/json/output-json.js"(exports, module2) {
3480
3480
  "use strict";
3481
- var path4 = require("path");
3481
+ var path5 = require("path");
3482
3482
  var mkdir = require_mkdirs2();
3483
3483
  var pathExists2 = require_path_exists().pathExists;
3484
3484
  var jsonFile = require_jsonfile2();
@@ -3487,7 +3487,7 @@ var require_output_json = __commonJS({
3487
3487
  callback = options;
3488
3488
  options = {};
3489
3489
  }
3490
- const dir = path4.dirname(file);
3490
+ const dir = path5.dirname(file);
3491
3491
  pathExists2(dir, (err, itDoes) => {
3492
3492
  if (err)
3493
3493
  return callback(err);
@@ -3509,11 +3509,11 @@ var require_output_json_sync = __commonJS({
3509
3509
  "node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) {
3510
3510
  "use strict";
3511
3511
  var fs4 = require_graceful_fs();
3512
- var path4 = require("path");
3512
+ var path5 = require("path");
3513
3513
  var mkdir = require_mkdirs2();
3514
3514
  var jsonFile = require_jsonfile2();
3515
3515
  function outputJsonSync(file, data, options) {
3516
- const dir = path4.dirname(file);
3516
+ const dir = path5.dirname(file);
3517
3517
  if (!fs4.existsSync(dir)) {
3518
3518
  mkdir.mkdirsSync(dir);
3519
3519
  }
@@ -3546,7 +3546,7 @@ var require_move_sync = __commonJS({
3546
3546
  "node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module2) {
3547
3547
  "use strict";
3548
3548
  var fs4 = require_graceful_fs();
3549
- var path4 = require("path");
3549
+ var path5 = require("path");
3550
3550
  var copySync = require_copy_sync2().copySync;
3551
3551
  var removeSync = require_remove().removeSync;
3552
3552
  var mkdirpSync = require_mkdirs2().mkdirpSync;
@@ -3556,7 +3556,7 @@ var require_move_sync = __commonJS({
3556
3556
  const overwrite = opts.overwrite || opts.clobber || false;
3557
3557
  const { srcStat } = stat.checkPathsSync(src, dest, "move");
3558
3558
  stat.checkParentPathsSync(src, srcStat, dest, "move");
3559
- mkdirpSync(path4.dirname(dest));
3559
+ mkdirpSync(path5.dirname(dest));
3560
3560
  return doRename(src, dest, overwrite);
3561
3561
  }
3562
3562
  function doRename(src, dest, overwrite) {
@@ -3604,7 +3604,7 @@ var require_move = __commonJS({
3604
3604
  "node_modules/fs-extra/lib/move/move.js"(exports, module2) {
3605
3605
  "use strict";
3606
3606
  var fs4 = require_graceful_fs();
3607
- var path4 = require("path");
3607
+ var path5 = require("path");
3608
3608
  var copy = require_copy2().copy;
3609
3609
  var remove2 = require_remove().remove;
3610
3610
  var mkdirp = require_mkdirs2().mkdirp;
@@ -3623,7 +3623,7 @@ var require_move = __commonJS({
3623
3623
  stat.checkParentPaths(src, srcStat, dest, "move", (err2) => {
3624
3624
  if (err2)
3625
3625
  return cb(err2);
3626
- mkdirp(path4.dirname(dest), (err3) => {
3626
+ mkdirp(path5.dirname(dest), (err3) => {
3627
3627
  if (err3)
3628
3628
  return cb(err3);
3629
3629
  return doRename(src, dest, overwrite, cb);
@@ -3688,7 +3688,7 @@ var require_output = __commonJS({
3688
3688
  "use strict";
3689
3689
  var u = require_universalify().fromCallback;
3690
3690
  var fs4 = require_graceful_fs();
3691
- var path4 = require("path");
3691
+ var path5 = require("path");
3692
3692
  var mkdir = require_mkdirs2();
3693
3693
  var pathExists2 = require_path_exists().pathExists;
3694
3694
  function outputFile(file, data, encoding, callback) {
@@ -3696,7 +3696,7 @@ var require_output = __commonJS({
3696
3696
  callback = encoding;
3697
3697
  encoding = "utf8";
3698
3698
  }
3699
- const dir = path4.dirname(file);
3699
+ const dir = path5.dirname(file);
3700
3700
  pathExists2(dir, (err, itDoes) => {
3701
3701
  if (err)
3702
3702
  return callback(err);
@@ -3710,7 +3710,7 @@ var require_output = __commonJS({
3710
3710
  });
3711
3711
  }
3712
3712
  function outputFileSync(file, ...args) {
3713
- const dir = path4.dirname(file);
3713
+ const dir = path5.dirname(file);
3714
3714
  if (fs4.existsSync(dir)) {
3715
3715
  return fs4.writeFileSync(file, ...args);
3716
3716
  }
@@ -3761,17 +3761,17 @@ var require_path_exists2 = __commonJS({
3761
3761
  var fs4 = require("fs");
3762
3762
  var { promisify } = require("util");
3763
3763
  var pAccess = promisify(fs4.access);
3764
- module2.exports = async (path4) => {
3764
+ module2.exports = async (path5) => {
3765
3765
  try {
3766
- await pAccess(path4);
3766
+ await pAccess(path5);
3767
3767
  return true;
3768
3768
  } catch (_) {
3769
3769
  return false;
3770
3770
  }
3771
3771
  };
3772
- module2.exports.sync = (path4) => {
3772
+ module2.exports.sync = (path5) => {
3773
3773
  try {
3774
- fs4.accessSync(path4);
3774
+ fs4.accessSync(path5);
3775
3775
  return true;
3776
3776
  } catch (_) {
3777
3777
  return false;
@@ -3856,16 +3856,16 @@ var require_asdf = __commonJS({
3856
3856
  exports.candidates = void 0;
3857
3857
  var fs4 = __importStar(require("fs"));
3858
3858
  var os2 = __importStar(require("os"));
3859
- var path4 = __importStar(require("path"));
3859
+ var path5 = __importStar(require("path"));
3860
3860
  var logger_1 = require_logger();
3861
- var ASDF_DATA_DIR = (_a = process.env.ASDF_DATA_DIR) !== null && _a !== void 0 ? _a : path4.join(os2.homedir(), ".asdf");
3862
- var JDK_BASE_DIR = path4.join(ASDF_DATA_DIR, "installs", "java");
3861
+ var ASDF_DATA_DIR = (_a = process.env.ASDF_DATA_DIR) !== null && _a !== void 0 ? _a : path5.join(os2.homedir(), ".asdf");
3862
+ var JDK_BASE_DIR = path5.join(ASDF_DATA_DIR, "installs", "java");
3863
3863
  function candidates() {
3864
3864
  return __awaiter(this, void 0, void 0, function* () {
3865
3865
  const ret = [];
3866
3866
  try {
3867
3867
  const files = yield fs4.promises.readdir(JDK_BASE_DIR, { withFileTypes: true });
3868
- const homedirs = files.filter((file) => file.isDirectory()).map((file) => path4.join(JDK_BASE_DIR, file.name));
3868
+ const homedirs = files.filter((file) => file.isDirectory()).map((file) => path5.join(JDK_BASE_DIR, file.name));
3869
3869
  ret.push(...homedirs);
3870
3870
  } catch (error) {
3871
3871
  (0, logger_1.log)(error);
@@ -4043,7 +4043,7 @@ var require_envs = __commonJS({
4043
4043
  Object.defineProperty(exports, "__esModule", { value: true });
4044
4044
  exports.candidatesFromSpecificEnv = exports.candidatesFromPath = void 0;
4045
4045
  var fs4 = __importStar(require("fs"));
4046
- var path4 = __importStar(require("path"));
4046
+ var path5 = __importStar(require("path"));
4047
4047
  var utils_1 = require_utils();
4048
4048
  var EXCLUSIONS_ON_MAC = /* @__PURE__ */ new Set([
4049
4049
  "/usr",
@@ -4053,8 +4053,8 @@ var require_envs = __commonJS({
4053
4053
  return __awaiter(this, void 0, void 0, function* () {
4054
4054
  const ret = [];
4055
4055
  if (process.env.PATH) {
4056
- const jdkBinFolderFromPath = process.env.PATH.split(path4.delimiter).filter((p) => (0, utils_1.looksLikeJavaHome)(p) || fs4.existsSync(path4.join(p, utils_1.JAVA_FILENAME))).map(utils_1.expandTilde);
4057
- const homeDirs = (yield Promise.all(jdkBinFolderFromPath.map((p) => (0, utils_1.getRealHome)(path4.dirname(p))))).filter((homeDir) => {
4056
+ const jdkBinFolderFromPath = process.env.PATH.split(path5.delimiter).filter((p) => (0, utils_1.looksLikeJavaHome)(p) || fs4.existsSync(path5.join(p, utils_1.JAVA_FILENAME))).map(utils_1.expandTilde);
4057
+ const homeDirs = (yield Promise.all(jdkBinFolderFromPath.map((p) => (0, utils_1.getRealHome)(path5.dirname(p))))).filter((homeDir) => {
4058
4058
  return homeDir && !(utils_1.isMac && EXCLUSIONS_ON_MAC.has(homeDir));
4059
4059
  });
4060
4060
  ret.push(...homeDirs);
@@ -4140,24 +4140,24 @@ var require_gradle = __commonJS({
4140
4140
  exports.candidates = void 0;
4141
4141
  var fs4 = __importStar(require("fs"));
4142
4142
  var os2 = __importStar(require("os"));
4143
- var path4 = __importStar(require("path"));
4143
+ var path5 = __importStar(require("path"));
4144
4144
  var logger_1 = require_logger();
4145
4145
  var utils_1 = require_utils();
4146
- var GRADLE_USER_HOME = (_a = process.env.GRADLE_USER_HOME) !== null && _a !== void 0 ? _a : path4.join(os2.homedir(), ".gradle");
4147
- var JDK_BASE_DIR = path4.join(GRADLE_USER_HOME, "jdks");
4146
+ var GRADLE_USER_HOME = (_a = process.env.GRADLE_USER_HOME) !== null && _a !== void 0 ? _a : path5.join(os2.homedir(), ".gradle");
4147
+ var JDK_BASE_DIR = path5.join(GRADLE_USER_HOME, "jdks");
4148
4148
  function candidates() {
4149
4149
  return __awaiter(this, void 0, void 0, function* () {
4150
4150
  const ret = [];
4151
4151
  try {
4152
4152
  for (const distro of yield fs4.promises.readdir(JDK_BASE_DIR, { withFileTypes: true })) {
4153
4153
  if (distro.isDirectory()) {
4154
- const distroDir = path4.join(JDK_BASE_DIR, distro.name);
4154
+ const distroDir = path5.join(JDK_BASE_DIR, distro.name);
4155
4155
  const files = yield fs4.promises.readdir(distroDir, { withFileTypes: true });
4156
4156
  const homedirs = files.filter((file) => file.isDirectory()).map((file) => {
4157
4157
  if (utils_1.isMac) {
4158
- return path4.join(distroDir, file.name, "Contents", "Home");
4158
+ return path5.join(distroDir, file.name, "Contents", "Home");
4159
4159
  } else {
4160
- return path4.join(distroDir, file.name);
4160
+ return path5.join(distroDir, file.name);
4161
4161
  }
4162
4162
  });
4163
4163
  ret.push(...homedirs);
@@ -4235,7 +4235,7 @@ var require_homebrew = __commonJS({
4235
4235
  Object.defineProperty(exports, "__esModule", { value: true });
4236
4236
  exports.candidates = exports.HOMEBREW_DIR_LINUX = exports.HOMEBREW_DIR_APPLE_SILLICON = exports.HOMEBREW_DIR_INTEL = void 0;
4237
4237
  var fs4 = __importStar(require("fs"));
4238
- var path4 = __importStar(require("path"));
4238
+ var path5 = __importStar(require("path"));
4239
4239
  var logger_1 = require_logger();
4240
4240
  var utils_1 = require_utils();
4241
4241
  exports.HOMEBREW_DIR_INTEL = "/usr/local/opt";
@@ -4246,7 +4246,7 @@ var require_homebrew = __commonJS({
4246
4246
  const ret = [];
4247
4247
  try {
4248
4248
  const files = yield fs4.promises.readdir(homebrewOptPath, { withFileTypes: true });
4249
- const homeDirLinks = files.filter((file) => file.isSymbolicLink() && (0, utils_1.looksLikeJavaHome)(file.name)).map((file) => path4.join(homebrewOptPath, file.name));
4249
+ const homeDirLinks = files.filter((file) => file.isSymbolicLink() && (0, utils_1.looksLikeJavaHome)(file.name)).map((file) => path5.join(homebrewOptPath, file.name));
4250
4250
  const actualHomeDirs = yield Promise.all((0, utils_1.deDup)(homeDirLinks).map((file) => (0, utils_1.getRealHome)(file)));
4251
4251
  ret.push(...actualHomeDirs);
4252
4252
  } catch (error) {
@@ -4322,16 +4322,16 @@ var require_jabba = __commonJS({
4322
4322
  exports.candidates = void 0;
4323
4323
  var fs4 = __importStar(require("fs"));
4324
4324
  var os2 = __importStar(require("os"));
4325
- var path4 = __importStar(require("path"));
4325
+ var path5 = __importStar(require("path"));
4326
4326
  var logger_1 = require_logger();
4327
- var JABBA_DIR = path4.join(os2.homedir(), ".jabba");
4328
- var JDK_BASE_DIR = path4.join(JABBA_DIR, "jdk");
4327
+ var JABBA_DIR = path5.join(os2.homedir(), ".jabba");
4328
+ var JDK_BASE_DIR = path5.join(JABBA_DIR, "jdk");
4329
4329
  function candidates() {
4330
4330
  return __awaiter(this, void 0, void 0, function* () {
4331
4331
  const ret = [];
4332
4332
  try {
4333
4333
  const files = yield fs4.promises.readdir(JDK_BASE_DIR, { withFileTypes: true });
4334
- const homedirs = files.filter((file) => file.isDirectory()).map((file) => path4.join(JDK_BASE_DIR, file.name));
4334
+ const homedirs = files.filter((file) => file.isDirectory()).map((file) => path5.join(JDK_BASE_DIR, file.name));
4335
4335
  ret.push(...homedirs);
4336
4336
  } catch (error) {
4337
4337
  (0, logger_1.log)(error);
@@ -4406,17 +4406,17 @@ var require_jenv = __commonJS({
4406
4406
  exports.candidates = void 0;
4407
4407
  var fs4 = __importStar(require("fs"));
4408
4408
  var os2 = __importStar(require("os"));
4409
- var path4 = __importStar(require("path"));
4409
+ var path5 = __importStar(require("path"));
4410
4410
  var logger_1 = require_logger();
4411
4411
  var utils_1 = require_utils();
4412
- var JENV_DIR = path4.join(os2.homedir(), ".jenv");
4413
- var JDK_LINK_BASE_DIR = path4.join(JENV_DIR, "versions");
4412
+ var JENV_DIR = path5.join(os2.homedir(), ".jenv");
4413
+ var JDK_LINK_BASE_DIR = path5.join(JENV_DIR, "versions");
4414
4414
  function candidates() {
4415
4415
  return __awaiter(this, void 0, void 0, function* () {
4416
4416
  const ret = [];
4417
4417
  try {
4418
4418
  const files = yield fs4.promises.readdir(JDK_LINK_BASE_DIR, { withFileTypes: true });
4419
- const homeDirLinks = files.filter((file) => file.isSymbolicLink()).map((file) => path4.join(JDK_LINK_BASE_DIR, file.name));
4419
+ const homeDirLinks = files.filter((file) => file.isSymbolicLink()).map((file) => path5.join(JDK_LINK_BASE_DIR, file.name));
4420
4420
  const actualHomeDirs = yield Promise.all(homeDirLinks.map((file) => fs4.promises.realpath(file)));
4421
4421
  const uniqHomes = (0, utils_1.deDup)(actualHomeDirs);
4422
4422
  ret.push(...uniqHomes);
@@ -4492,7 +4492,7 @@ var require_linux = __commonJS({
4492
4492
  Object.defineProperty(exports, "__esModule", { value: true });
4493
4493
  exports.candidates = void 0;
4494
4494
  var fs4 = __importStar(require("fs"));
4495
- var path4 = __importStar(require("path"));
4495
+ var path5 = __importStar(require("path"));
4496
4496
  var logger_1 = require_logger();
4497
4497
  var JDK_BASE_DIRS = [
4498
4498
  "/usr/lib/jvm",
@@ -4504,7 +4504,7 @@ var require_linux = __commonJS({
4504
4504
  for (const baseDir of JDK_BASE_DIRS) {
4505
4505
  try {
4506
4506
  const files = yield fs4.promises.readdir(baseDir, { withFileTypes: true });
4507
- const homedirs = files.filter((file) => file.isDirectory()).map((file) => path4.join(baseDir, file.name));
4507
+ const homedirs = files.filter((file) => file.isDirectory()).map((file) => path5.join(baseDir, file.name));
4508
4508
  ret.push(...homedirs);
4509
4509
  } catch (error) {
4510
4510
  (0, logger_1.log)(error);
@@ -4581,12 +4581,12 @@ var require_macOS = __commonJS({
4581
4581
  var cp2 = __importStar(require("child_process"));
4582
4582
  var fs4 = __importStar(require("fs"));
4583
4583
  var os2 = __importStar(require("os"));
4584
- var path4 = __importStar(require("path"));
4584
+ var path5 = __importStar(require("path"));
4585
4585
  var logger_1 = require_logger();
4586
4586
  var utils_1 = require_utils();
4587
4587
  var JDK_BASE_DIRS = [
4588
4588
  "/Library/Java/JavaVirtualMachines",
4589
- path4.join(os2.homedir(), "Library/Java/JavaVirtualMachines")
4589
+ path5.join(os2.homedir(), "Library/Java/JavaVirtualMachines")
4590
4590
  ];
4591
4591
  function candidates() {
4592
4592
  return __awaiter(this, void 0, void 0, function* () {
@@ -4603,7 +4603,7 @@ var require_macOS = __commonJS({
4603
4603
  for (const baseDir of JDK_BASE_DIRS) {
4604
4604
  try {
4605
4605
  const files = yield fs4.promises.readdir(baseDir, { withFileTypes: true });
4606
- const homedirs = files.filter((file) => file.isDirectory()).map((file) => path4.join(baseDir, file.name, "Contents", "Home"));
4606
+ const homedirs = files.filter((file) => file.isDirectory()).map((file) => path5.join(baseDir, file.name, "Contents", "Home"));
4607
4607
  ret.push(...homedirs);
4608
4608
  } catch (error) {
4609
4609
  (0, logger_1.log)(error);
@@ -4704,16 +4704,16 @@ var require_sdkman = __commonJS({
4704
4704
  exports.candidates = void 0;
4705
4705
  var fs4 = __importStar(require("fs"));
4706
4706
  var os2 = __importStar(require("os"));
4707
- var path4 = __importStar(require("path"));
4707
+ var path5 = __importStar(require("path"));
4708
4708
  var logger_1 = require_logger();
4709
- var SDKMAN_DIR = (_a = process.env.SDKMAN_DIR) !== null && _a !== void 0 ? _a : path4.join(os2.homedir(), ".sdkman");
4710
- var JDK_BASE_DIR = path4.join(SDKMAN_DIR, "candidates", "java");
4709
+ var SDKMAN_DIR = (_a = process.env.SDKMAN_DIR) !== null && _a !== void 0 ? _a : path5.join(os2.homedir(), ".sdkman");
4710
+ var JDK_BASE_DIR = path5.join(SDKMAN_DIR, "candidates", "java");
4711
4711
  function candidates() {
4712
4712
  return __awaiter(this, void 0, void 0, function* () {
4713
4713
  const ret = [];
4714
4714
  try {
4715
4715
  const files = yield fs4.promises.readdir(JDK_BASE_DIR, { withFileTypes: true });
4716
- const homedirs = files.filter((file) => file.isDirectory()).map((file) => path4.join(JDK_BASE_DIR, file.name));
4716
+ const homedirs = files.filter((file) => file.isDirectory()).map((file) => path5.join(JDK_BASE_DIR, file.name));
4717
4717
  ret.push(...homedirs);
4718
4718
  } catch (error) {
4719
4719
  (0, logger_1.log)(error);
@@ -4788,14 +4788,14 @@ var require_windows = __commonJS({
4788
4788
  exports.candidates = void 0;
4789
4789
  var fs4 = __importStar(require("fs"));
4790
4790
  var os2 = __importStar(require("os"));
4791
- var path4 = __importStar(require("path"));
4791
+ var path5 = __importStar(require("path"));
4792
4792
  var logger_1 = require_logger();
4793
4793
  var utils_1 = require_utils();
4794
4794
  var PROGRAM_DIRS = Array.from(/* @__PURE__ */ new Set([
4795
4795
  process.env.ProgramW6432,
4796
4796
  process.env.ProgramFiles,
4797
4797
  process.env.LOCALAPPDATA,
4798
- path4.join(os2.homedir(), "AppData", "Local")
4798
+ path5.join(os2.homedir(), "AppData", "Local")
4799
4799
  ])).filter(Boolean);
4800
4800
  var POPULAR_DISTRIBUTIONS = [
4801
4801
  "Eclipse Foundation",
@@ -4803,7 +4803,7 @@ var require_windows = __commonJS({
4803
4803
  "Java",
4804
4804
  "Amazon Corretto",
4805
4805
  "Microsoft",
4806
- path4.join("SapMachine", "JDK"),
4806
+ path5.join("SapMachine", "JDK"),
4807
4807
  "Zulu"
4808
4808
  ];
4809
4809
  function candidates() {
@@ -4811,10 +4811,10 @@ var require_windows = __commonJS({
4811
4811
  const ret = [];
4812
4812
  for (const programDir of PROGRAM_DIRS) {
4813
4813
  for (const distro of POPULAR_DISTRIBUTIONS) {
4814
- const baseDir = path4.join(programDir, distro);
4814
+ const baseDir = path5.join(programDir, distro);
4815
4815
  try {
4816
4816
  const files = yield fs4.promises.readdir(baseDir, { withFileTypes: true });
4817
- const homedirs = files.filter((file) => file.isDirectory()).map((file) => path4.join(baseDir, file.name));
4817
+ const homedirs = files.filter((file) => file.isDirectory()).map((file) => path5.join(baseDir, file.name));
4818
4818
  ret.push(...homedirs);
4819
4819
  } catch (error) {
4820
4820
  (0, logger_1.log)(error);
@@ -4891,7 +4891,7 @@ var require_dist2 = __commonJS({
4891
4891
  exports.getSources = exports.getRuntime = exports.findRuntimes = exports.JAVA_FILENAME = exports.JAVAC_FILENAME = void 0;
4892
4892
  var cp2 = __importStar(require("child_process"));
4893
4893
  var fs4 = __importStar(require("fs"));
4894
- var path4 = __importStar(require("path"));
4894
+ var path5 = __importStar(require("path"));
4895
4895
  var asdf = __importStar(require_asdf());
4896
4896
  var envs = __importStar(require_envs());
4897
4897
  var gradle = __importStar(require_gradle());
@@ -5072,7 +5072,7 @@ var require_dist2 = __commonJS({
5072
5072
  function checkJavaFile(runtime) {
5073
5073
  return __awaiter(this, void 0, void 0, function* () {
5074
5074
  const { homedir: homedir2 } = runtime;
5075
- const binary = path4.join(homedir2, "bin", utils_1.JAVA_FILENAME);
5075
+ const binary = path5.join(homedir2, "bin", utils_1.JAVA_FILENAME);
5076
5076
  try {
5077
5077
  yield fs4.promises.access(binary, fs4.constants.F_OK);
5078
5078
  runtime.isValid = true;
@@ -5085,7 +5085,7 @@ var require_dist2 = __commonJS({
5085
5085
  function checkJavacFile(runtime) {
5086
5086
  return __awaiter(this, void 0, void 0, function* () {
5087
5087
  const { homedir: homedir2 } = runtime;
5088
- const binary = path4.join(homedir2, "bin", utils_1.JAVAC_FILENAME);
5088
+ const binary = path5.join(homedir2, "bin", utils_1.JAVAC_FILENAME);
5089
5089
  try {
5090
5090
  yield fs4.promises.access(binary, fs4.constants.F_OK);
5091
5091
  runtime.hasJavac = true;
@@ -5098,7 +5098,7 @@ var require_dist2 = __commonJS({
5098
5098
  function parseVersion(runtime) {
5099
5099
  return __awaiter(this, void 0, void 0, function* () {
5100
5100
  const { homedir: homedir2 } = runtime;
5101
- const releaseFile = path4.join(homedir2, "release");
5101
+ const releaseFile = path5.join(homedir2, "release");
5102
5102
  try {
5103
5103
  const content = yield fs4.promises.readFile(releaseFile, { encoding: "utf-8" });
5104
5104
  const regexp = /^JAVA_VERSION="(.*)"/gm;
@@ -5128,7 +5128,7 @@ var require_dist2 = __commonJS({
5128
5128
  function checkJavaVersionByCLI(javaHome) {
5129
5129
  return __awaiter(this, void 0, void 0, function* () {
5130
5130
  return new Promise((resolve4, _reject) => {
5131
- const javaBin = path4.join(javaHome, "bin", utils_1.JAVA_FILENAME);
5131
+ const javaBin = path5.join(javaHome, "bin", utils_1.JAVA_FILENAME);
5132
5132
  cp2.execFile(javaBin, ["-version"], {}, (_error, _stdout, stderr) => {
5133
5133
  const regexp = /version "(.*)"/g;
5134
5134
  const match = regexp.exec(stderr);
@@ -11906,6 +11906,8 @@ __export(src_exports, {
11906
11906
  });
11907
11907
  module.exports = __toCommonJS(src_exports);
11908
11908
  var import_path = __toESM(require("path"));
11909
+ var FS = __toESM(require("fs"));
11910
+ var path4 = __toESM(require("path"));
11909
11911
 
11910
11912
  // src/util/util.ts
11911
11913
  var coc = __toESM(require("coc.nvim"));
@@ -12459,47 +12461,47 @@ var Commands;
12459
12461
  Commands2.OPEN_BROWSER = "vscode.open";
12460
12462
  Commands2.OPEN_JSON_SETTINGS = "workbench.action.openSettingsJson";
12461
12463
  Commands2.OPEN_SETTINGS = "workbench.action.openSettings";
12462
- Commands2.DEACTIVATE_RULE = "SonarLint.DeactivateRule";
12463
- Commands2.ACTIVATE_RULE = "SonarLint.ActivateRule";
12464
- Commands2.TOGGLE_RULE = "SonarLint.ToggleRule";
12465
- Commands2.SHOW_ALL_RULES = "SonarLint.ShowAllRules";
12466
- Commands2.SHOW_ACTIVE_RULES = "SonarLint.ShowActiveRules";
12467
- Commands2.SHOW_INACTIVE_RULES = "SonarLint.ShowInactiveRules";
12468
- Commands2.SHOW_SONARLINT_OUTPUT = "SonarLint.ShowSonarLintOutput";
12469
- Commands2.OPEN_RULE_BY_KEY = "SonarLint.OpenRuleByKey";
12470
- Commands2.FIND_RULE_BY_KEY = "SonarLint.FindRuleByKey";
12471
- Commands2.SHOW_ALL_LOCATIONS = "SonarLint.ShowAllLocations";
12472
- Commands2.CLEAR_LOCATIONS = "SonarLint.ClearLocations";
12473
- Commands2.NAVIGATE_TO_LOCATION = "SonarLint.NavigateToLocation";
12474
- Commands2.INSTALL_MANAGED_JRE = "SonarLint.InstallManagedJre";
12475
- Commands2.HIDE_HOTSPOT = "SonarLint.HideHotspot";
12476
- Commands2.SHOW_HOTSPOT_DESCRIPTION = "SonarLint.ShowHotspotDescription";
12477
- Commands2.CONFIGURE_COMPILATION_DATABASE = "SonarLint.ConfigureCompilationDatabase";
12478
- Commands2.CONNECT_TO_SONARQUBE = "SonarLint.ConnectToSonarQube";
12479
- Commands2.CONNECT_TO_SONARCLOUD = "SonarLint.ConnectToSonarCloud";
12480
- Commands2.EDIT_SONARQUBE_CONNECTION = "SonarLint.EditSonarQubeConnection";
12481
- Commands2.EDIT_SONARCLOUD_CONNECTION = "SonarLint.EditSonarCloudConnection";
12482
- Commands2.SHARE_CONNECTED_MODE_CONFIG = "SonarLint.ShareConnectedModeConfiguration";
12483
- Commands2.REMOVE_CONNECTION = "SonarLint.RemoveConnection";
12484
- Commands2.ADD_PROJECT_BINDING = "SonarLint.AddProjectBinding";
12485
- Commands2.EDIT_PROJECT_BINDING = "SonarLint.EditProjectBinding";
12486
- Commands2.REMOVE_PROJECT_BINDING = "SonarLint.RemoveProjectBinding";
12487
- Commands2.SHOW_HOTSPOT_LOCATION = "SonarLint.ShowHotspotLocation";
12488
- Commands2.SHOW_HOTSPOT_RULE_DESCRIPTION = "SonarLint.ShowHotspotRuleDescription";
12489
- Commands2.SHOW_HOTSPOT_DETAILS = "SonarLint.ShowHotspotDetails";
12490
- Commands2.OPEN_HOTSPOT_ON_SERVER = "SonarLint.OpenHotspotOnServer";
12491
- Commands2.HIGHLIGHT_REMOTE_HOTSPOT_LOCATION = "SonarLint.HighlightRemoteHotspotLocation";
12492
- Commands2.CLEAR_HOTSPOT_HIGHLIGHTING = "SonarLint.ClearHotspotLocations";
12493
- Commands2.SHOW_HOTSPOTS_IN_OPEN_FILES = "SonarLint.ShowHotspotsInOpenFiles";
12494
- Commands2.SCAN_FOR_HOTSPOTS_IN_FOLDER = "SonarLint.ScanForHotspotsInFolder";
12495
- Commands2.FORGET_FOLDER_HOTSPOTS = "SonarLint.ForgetFolderHotspots";
12496
- Commands2.RESOLVE_ISSUE = "SonarLint.ResolveIssue";
12497
- Commands2.REOPEN_LOCAL_ISSUES = "SonarLint.ReopenLocalIssues";
12498
- Commands2.TRIGGER_HELP_AND_FEEDBACK_LINK = "SonarLint.HelpAndFeedbackLinkClicked";
12499
- Commands2.CHANGE_HOTSPOT_STATUS = "SonarLint.ChangeHotspotStatus";
12500
- Commands2.ENABLE_VERBOSE_LOGS = "SonarLint.EnableVerboseLogs";
12501
- Commands2.ANALYSE_OPEN_FILE = "SonarLint.AnalyseOpenFile";
12502
- Commands2.NEW_CODE_DEFINITION = "SonarLint.NewCodeDefinition";
12464
+ Commands2.DEACTIVATE_RULE = "sonarlint.deactivate.rule";
12465
+ Commands2.ACTIVATE_RULE = "sonarlint.activate.rule";
12466
+ Commands2.TOGGLE_RULE = "sonarlint.toggle.rule";
12467
+ Commands2.SHOW_ALL_RULES = "sonarlint.show.all.rules";
12468
+ Commands2.SHOW_ACTIVE_RULES = "sonarlint.show.active.rules";
12469
+ Commands2.SHOW_INACTIVE_RULES = "sonarlint.show.inactive.rules";
12470
+ Commands2.SHOW_SONARLINT_OUTPUT = "sonarlint.show.sonar.lint.output";
12471
+ Commands2.OPEN_RULE_BY_KEY = "sonarlint.open.rule.by.key";
12472
+ Commands2.FIND_RULE_BY_KEY = "sonarlint.find.rule.by.key";
12473
+ Commands2.SHOW_ALL_LOCATIONS = "sonarlint.show.all.locations";
12474
+ Commands2.CLEAR_LOCATIONS = "sonarlint.clear.locations";
12475
+ Commands2.NAVIGATE_TO_LOCATION = "sonarlint.navigate.to.location";
12476
+ Commands2.INSTALL_MANAGED_JRE = "sonarlint.install.managed.jre";
12477
+ Commands2.HIDE_HOTSPOT = "sonarlint.hide.hotspot";
12478
+ Commands2.SHOW_HOTSPOT_DESCRIPTION = "sonarlint.show.hotspot.description";
12479
+ Commands2.CONFIGURE_COMPILATION_DATABASE = "sonarlint.configure.compilation.database";
12480
+ Commands2.CONNECT_TO_SONARQUBE = "sonarlint.connect.to.sonar.qube";
12481
+ Commands2.CONNECT_TO_SONARCLOUD = "sonarlint.connect.to.sonar.cloud";
12482
+ Commands2.EDIT_SONARQUBE_CONNECTION = "sonarlint.edit.sonar.qube.connection";
12483
+ Commands2.EDIT_SONARCLOUD_CONNECTION = "sonarlint.edit.sonar.cloud.connection";
12484
+ Commands2.SHARE_CONNECTED_MODE_CONFIG = "sonarlint.share.connected.mode.configuration";
12485
+ Commands2.REMOVE_CONNECTION = "sonarlint.remove.connection";
12486
+ Commands2.ADD_PROJECT_BINDING = "sonarlint.add.project.binding";
12487
+ Commands2.EDIT_PROJECT_BINDING = "sonarlint.edit.project.binding";
12488
+ Commands2.REMOVE_PROJECT_BINDING = "sonarlint.remove.project.binding";
12489
+ Commands2.SHOW_HOTSPOT_LOCATION = "sonarlint.show.hotspot.location";
12490
+ Commands2.SHOW_HOTSPOT_RULE_DESCRIPTION = "sonarlint.show.hotspot.rule.description";
12491
+ Commands2.SHOW_HOTSPOT_DETAILS = "sonarlint.show.hotspot.details";
12492
+ Commands2.OPEN_HOTSPOT_ON_SERVER = "sonarlint.open.hotspot.on.server";
12493
+ Commands2.HIGHLIGHT_REMOTE_HOTSPOT_LOCATION = "sonarlint.highlight.remote.hotspot.location";
12494
+ Commands2.CLEAR_HOTSPOT_HIGHLIGHTING = "sonarlint.clear.hotspot.locations";
12495
+ Commands2.SHOW_HOTSPOTS_IN_OPEN_FILES = "sonarlint.show.hotspots.in.open.files";
12496
+ Commands2.SCAN_FOR_HOTSPOTS_IN_FOLDER = "sonarlint.scan.for.hotspots.in.folder";
12497
+ Commands2.FORGET_FOLDER_HOTSPOTS = "sonarlint.forget.folder.hotspots";
12498
+ Commands2.RESOLVE_ISSUE = "sonarlint.resolve.issue";
12499
+ Commands2.REOPEN_LOCAL_ISSUES = "sonarlint.reopen.local.issues";
12500
+ Commands2.TRIGGER_HELP_AND_FEEDBACK_LINK = "sonarlint.help.and.feedback.link.clicked";
12501
+ Commands2.CHANGE_HOTSPOT_STATUS = "sonarlint.change.hotspot.status";
12502
+ Commands2.ENABLE_VERBOSE_LOGS = "sonarlint.enable.verbose.logs";
12503
+ Commands2.ANALYSE_OPEN_FILE = "sonarlint.analyse.open.file";
12504
+ Commands2.NEW_CODE_DEFINITION = "sonarlint.new.code.definition";
12503
12505
  })(Commands || (Commands = {}));
12504
12506
 
12505
12507
  // src/java/jre.ts
@@ -13110,7 +13112,7 @@ function toggleRule(level) {
13110
13112
  level = !current || current == "on" ? "off" : "on";
13111
13113
  }
13112
13114
  let localLevel = !level ? rules[ruleKey] : level;
13113
- rules = Object.assign({ [ruleKey]: { localLevel } }, rules);
13115
+ rules = { [ruleKey]: { localLevel }, ...rules };
13114
13116
  if (localLevel === "off") {
13115
13117
  const result = await coc8.window.showPrompt(
13116
13118
  `Are you sure you want to disable rule ${ruleKey}? `
@@ -13122,11 +13124,7 @@ function toggleRule(level) {
13122
13124
  coc8.window.showWarningMessage(
13123
13125
  `Changed level of rule ${ruleKey} to ${localLevel}`
13124
13126
  );
13125
- return await configuration.update(
13126
- "rules",
13127
- rules,
13128
- coc8.ConfigurationTarget.Global
13129
- );
13127
+ return await configuration.update("rules", rules);
13130
13128
  } else {
13131
13129
  const { key, activeByDefault } = ruleKey;
13132
13130
  let localLevel = level;
@@ -13147,11 +13145,7 @@ function toggleRule(level) {
13147
13145
  delete rules[key];
13148
13146
  }
13149
13147
  coc8.window.showWarningMessage(`Changed level of rule ${key} to ${localLevel}`);
13150
- return await configuration.update(
13151
- "rules",
13152
- rules,
13153
- coc8.ConfigurationTarget.Global
13154
- );
13148
+ return await configuration.update("rules", rules);
13155
13149
  }
13156
13150
  };
13157
13151
  }
@@ -13713,7 +13707,7 @@ function tryRelativizeToWorkspaceFolder(filePath) {
13713
13707
  return [filePath, void 0];
13714
13708
  }
13715
13709
  async function configureCompilationDatabase() {
13716
- const paths = (await coc11.workspace.findFiles(`**/compile_commands.json`)).filter((path4) => fs3.existsSync(path4.fsPath));
13710
+ const paths = (await coc11.workspace.findFiles(`**/compile_commands.json`)).filter((path5) => fs3.existsSync(path5.fsPath));
13717
13711
  if (paths.length === 0) {
13718
13712
  coc11.window.showWarningMessage(`No compilation databases were found in the workspace
13719
13713
  [How to generate compile commands](${SonarLintDocumentation.C_CPP_ANALYSIS})`);
@@ -13761,8 +13755,8 @@ async function showCompilationDatabaseOptions(paths) {
13761
13755
  if (paths.length === 1) {
13762
13756
  return showMessageAndUpdateConfig(paths[0].fsPath);
13763
13757
  }
13764
- const items = paths.map((path4, i) => ({
13765
- label: path4.fsPath,
13758
+ const items = paths.map((path5, i) => ({
13759
+ label: path5.fsPath,
13766
13760
  description: ``,
13767
13761
  index: i
13768
13762
  }));
@@ -13778,7 +13772,10 @@ async function showCompilationDatabaseOptions(paths) {
13778
13772
 
13779
13773
  // src/index.ts
13780
13774
  var DOCUMENT_SELECTOR = [
13781
- { scheme: "file", pattern: "**/*" },
13775
+ {
13776
+ scheme: "file",
13777
+ pattern: "**/*"
13778
+ },
13782
13779
  {
13783
13780
  notebook: {
13784
13781
  scheme: "file",
@@ -13836,7 +13833,7 @@ async function activate(context) {
13836
13833
  initializationOptions: () => {
13837
13834
  return {
13838
13835
  productKey: "vscode",
13839
- productName: "SonarLint coc",
13836
+ productName: "SonarLint",
13840
13837
  productVersion: "1.0.0",
13841
13838
  showVerboseLogs: coc12.workspace.getConfiguration().get("sonarlint.output.showVerboseLogs", false),
13842
13839
  platform: getPlatform2(),
@@ -13854,6 +13851,7 @@ async function activate(context) {
13854
13851
  clientOptions
13855
13852
  );
13856
13853
  await languageClient.start();
13854
+ coc12.services.registerLanguageClient(languageClient);
13857
13855
  allRulesTreeDataProvider = new AllRulesTreeDataProvider(
13858
13856
  () => languageClient.listAllRules(),
13859
13857
  /* @__PURE__ */ new Map()
@@ -13875,7 +13873,7 @@ async function activate(context) {
13875
13873
  modes: ["n"]
13876
13874
  });
13877
13875
  context.subscriptions.push(floatDescriptionFactory);
13878
- installCustomRequestHandlers(context);
13876
+ installCustomRequestHandlers();
13879
13877
  coc12.workspace.onDidChangeConfiguration(async (event) => {
13880
13878
  if (event.affectsConfiguration("sonarlint.rules")) {
13881
13879
  allRulesTreeDataProvider.refresh();
@@ -13996,14 +13994,43 @@ function registerCommands(context) {
13996
13994
  })
13997
13995
  );
13998
13996
  }
13999
- function installCustomRequestHandlers(context) {
13997
+ function installCustomRequestHandlers() {
14000
13998
  languageClient.onNotification(
14001
13999
  ShowRuleDescriptionNotification.type,
14002
14000
  showRuleDescription(floatDescriptionFactory)
14003
14001
  );
14002
+ languageClient.onRequest(ListFilesInFolderRequest.type, (params) => {
14003
+ const files = [];
14004
+ const folderCrawler = (dir) => {
14005
+ let elements = [];
14006
+ try {
14007
+ elements = FS.readdirSync(dir);
14008
+ } catch (error) {
14009
+ logToSonarLintOutput(`Failed to read dir ${dir} due to ${error}`);
14010
+ }
14011
+ for (const elem of elements) {
14012
+ try {
14013
+ const full = path4.join(dir, elem);
14014
+ const stat = FS.statSync(full);
14015
+ if (stat.isFile()) {
14016
+ files.push({
14017
+ filePath: full,
14018
+ fileName: elem
14019
+ });
14020
+ } else if (!elem.startsWith(".")) {
14021
+ folderCrawler(full);
14022
+ }
14023
+ } catch (error) {
14024
+ logToSonarLintOutput(`Failed to stat ${elem} due to ${error}`);
14025
+ }
14026
+ }
14027
+ };
14028
+ folderCrawler(coc12.Uri.parse(params.folderUri).fsPath);
14029
+ return { foundFiles: files };
14030
+ });
14004
14031
  languageClient.onRequest(
14005
14032
  GetJavaConfigRequest.type,
14006
- (fileUri) => getJavaConfig(languageClient, fileUri)
14033
+ (params) => getJavaConfig(languageClient, params)
14007
14034
  );
14008
14035
  languageClient.onRequest(
14009
14036
  ScmCheckRequest.type,