@rescript/language-server 1.42.0 → 1.44.0
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.
- package/analysis_binaries/darwin/rescript-editor-analysis.exe +0 -0
- package/analysis_binaries/darwinarm64/rescript-editor-analysis.exe +0 -0
- package/analysis_binaries/linux/rescript-editor-analysis.exe +0 -0
- package/analysis_binaries/win32/rescript-editor-analysis.exe +0 -0
- package/out/cli.js +93 -32
- package/out/cli.js.map +7 -1
- package/package.json +1 -1
- package/out/buildSchema.js +0 -21
- package/out/buildSchema.js.map +0 -1
- package/out/codeActions.js +0 -573
- package/out/codeActions.js.map +0 -1
- package/out/constants.js +0 -58
- package/out/constants.js.map +0 -1
- package/out/errorReporter.js +0 -22
- package/out/errorReporter.js.map +0 -1
- package/out/lookup.js +0 -147
- package/out/lookup.js.map +0 -1
- package/out/server.js +0 -1108
- package/out/server.js.map +0 -1
- package/out/utils.js +0 -582
- package/out/utils.js.map +0 -1
package/out/constants.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.pullConfigurationInterval = exports.configurationRequestId = exports.bsconfigSuffixDefault = exports.bsconfigModuleDefault = exports.startBuildAction = exports.cmiExt = exports.resiExt = exports.resExt = exports.compilerLogPartialPath = exports.compilerDirPartialPath = exports.rescriptJsonPartialPath = exports.bsconfigPartialPath = exports.bsbLock = exports.rescriptNodePartialPath = exports.nodeModulesBinDir = exports.bscBinName = exports.rescriptBinName = exports.analysisProdPath = exports.analysisDevPath = exports.bscNativeReScriptPartialPath = exports.bscExeName = exports.nodeModulesPlatformPath = exports.platformPath = exports.jsonrpcVersion = exports.platformDir = void 0;
|
|
27
|
-
const path = __importStar(require("path"));
|
|
28
|
-
const buildSchema_1 = require("./buildSchema");
|
|
29
|
-
exports.platformDir = process.arch == "arm64" ? process.platform + process.arch : process.platform;
|
|
30
|
-
// See https://microsoft.github.io/language-server-protocol/specification Abstract Message
|
|
31
|
-
// version is fixed to 2.0
|
|
32
|
-
exports.jsonrpcVersion = "2.0";
|
|
33
|
-
exports.platformPath = path.join("rescript", exports.platformDir);
|
|
34
|
-
exports.nodeModulesPlatformPath = path.join("node_modules", exports.platformPath);
|
|
35
|
-
exports.bscExeName = "bsc.exe";
|
|
36
|
-
exports.bscNativeReScriptPartialPath = path.join(exports.nodeModulesPlatformPath, exports.bscExeName);
|
|
37
|
-
exports.analysisDevPath = path.join(path.dirname(__dirname), "..", "rescript-editor-analysis.exe");
|
|
38
|
-
exports.analysisProdPath = path.join(path.dirname(__dirname), "analysis_binaries", exports.platformDir, "rescript-editor-analysis.exe");
|
|
39
|
-
exports.rescriptBinName = "rescript";
|
|
40
|
-
exports.bscBinName = "bsc";
|
|
41
|
-
exports.nodeModulesBinDir = path.join("node_modules", ".bin");
|
|
42
|
-
// can't use the native bsb/rescript since we might need the watcher -w flag, which is only in the JS wrapper
|
|
43
|
-
exports.rescriptNodePartialPath = path.join(exports.nodeModulesBinDir, exports.rescriptBinName);
|
|
44
|
-
exports.bsbLock = ".bsb.lock";
|
|
45
|
-
exports.bsconfigPartialPath = "bsconfig.json";
|
|
46
|
-
exports.rescriptJsonPartialPath = "rescript.json";
|
|
47
|
-
exports.compilerDirPartialPath = path.join("lib", "bs");
|
|
48
|
-
exports.compilerLogPartialPath = path.join("lib", "bs", ".compiler.log");
|
|
49
|
-
exports.resExt = ".res";
|
|
50
|
-
exports.resiExt = ".resi";
|
|
51
|
-
exports.cmiExt = ".cmi";
|
|
52
|
-
exports.startBuildAction = "Start Build";
|
|
53
|
-
// bsconfig defaults according configuration schema (https://rescript-lang.org/docs/manual/latest/build-configuration-schema)
|
|
54
|
-
exports.bsconfigModuleDefault = buildSchema_1.ModuleFormat.Commonjs;
|
|
55
|
-
exports.bsconfigSuffixDefault = ".js";
|
|
56
|
-
exports.configurationRequestId = "rescript_configuration_request";
|
|
57
|
-
exports.pullConfigurationInterval = 10000;
|
|
58
|
-
//# sourceMappingURL=constants.js.map
|
package/out/constants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,+CAA6C;AAElC,QAAA,WAAW,GACpB,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;AAE/E,0FAA0F;AAC1F,0BAA0B;AACf,QAAA,cAAc,G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AG,aAAa,CAAC;AAE5C,6HAA6H;AAClH,QAAA,qBAAqB,GAAG,0BAAY,CAAC,QAAQ,CAAC;AAC9C,QAAA,qBAAqB,GAAG,KAAK,CAAC;AAE9B,QAAA,sBAAsB,GAAG,gCAAgC,CAAC;AAC1D,QAAA,yBAAyB,GAAG,KAAM,CAAC"}
|
package/out/errorReporter.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reportError = exports.onErrorReported = void 0;
|
|
4
|
-
let subscribers = [];
|
|
5
|
-
const errorLastNotified = {};
|
|
6
|
-
const onErrorReported = (cb) => {
|
|
7
|
-
subscribers.push(cb);
|
|
8
|
-
return () => {
|
|
9
|
-
subscribers = subscribers.filter((s) => s !== cb);
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.onErrorReported = onErrorReported;
|
|
13
|
-
const reportError = (identifier, msg) => {
|
|
14
|
-
// Warn once per 15 min per error
|
|
15
|
-
if (errorLastNotified[identifier] == null ||
|
|
16
|
-
errorLastNotified[identifier] < Date.now() - 15 * 1000 * 60) {
|
|
17
|
-
errorLastNotified[identifier] = Date.now();
|
|
18
|
-
subscribers.forEach((cb) => cb(msg));
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.reportError = reportError;
|
|
22
|
-
//# sourceMappingURL=errorReporter.js.map
|
package/out/errorReporter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorReporter.js","sourceRoot":"","sources":["../src/errorReporter.ts"],"names":[],"mappings":";;;AAEA,IAAI,WAAW,GAAc,EAAE,CAAC;AAChC,MAAM,iBAAiB,GAA2B,EAAE,CAAC;AAE9C,MAAM,eAAe,GAAG,CAAC,EAAyB,EAAE,EAAE;IAC3D,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrB,OAAO,GAAG,EAAE;QACV,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;IACpD,CAAC,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B;AAEK,MAAM,WAAW,GAAG,CAAC,UAAkB,EAAE,GAAW,EAAE,EAAE;IAC7D,iCAAiC;IACjC,IACE,iBAAiB,CAAC,UAAU,CAAC,IAAI,IAAI;QACrC,iBAAiB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,EAAE,EAC3D;QACA,iBAAiB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC3C,WAAW,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KACtC;AACH,CAAC,CAAC;AATW,QAAA,WAAW,eAStB"}
|
package/out/lookup.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getFilenameFromRootBsconfig = exports.getFilenameFromBsconfig = exports.getSuffixAndPathFragmentFromBsconfig = exports.readConfig = exports.findFilePathFromProjectRoot = exports.replaceFileExtension = void 0;
|
|
27
|
-
const fs = __importStar(require("fs"));
|
|
28
|
-
const path = __importStar(require("path"));
|
|
29
|
-
const c = __importStar(require("./constants"));
|
|
30
|
-
const getCompiledFolderName = (moduleFormat) => {
|
|
31
|
-
switch (moduleFormat) {
|
|
32
|
-
case "es6":
|
|
33
|
-
return "es6";
|
|
34
|
-
case "es6-global":
|
|
35
|
-
return "es6_global";
|
|
36
|
-
case "commonjs":
|
|
37
|
-
default:
|
|
38
|
-
return "js";
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const replaceFileExtension = (filePath, ext) => {
|
|
42
|
-
let name = path.basename(filePath, path.extname(filePath));
|
|
43
|
-
return path.format({ dir: path.dirname(filePath), name, ext });
|
|
44
|
-
};
|
|
45
|
-
exports.replaceFileExtension = replaceFileExtension;
|
|
46
|
-
// Check if filePartialPath exists at directory and return the joined path,
|
|
47
|
-
// otherwise recursively check parent directories for it.
|
|
48
|
-
const findFilePathFromProjectRoot = (directory, // This must be a directory and not a file!
|
|
49
|
-
filePartialPath) => {
|
|
50
|
-
if (directory == null) {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
let filePath = path.join(directory, filePartialPath);
|
|
54
|
-
if (fs.existsSync(filePath)) {
|
|
55
|
-
return filePath;
|
|
56
|
-
}
|
|
57
|
-
let parentDir = path.dirname(directory);
|
|
58
|
-
if (parentDir === directory) {
|
|
59
|
-
// reached the top
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
return (0, exports.findFilePathFromProjectRoot)(parentDir, filePartialPath);
|
|
63
|
-
};
|
|
64
|
-
exports.findFilePathFromProjectRoot = findFilePathFromProjectRoot;
|
|
65
|
-
const readConfig = (projDir) => {
|
|
66
|
-
try {
|
|
67
|
-
let rescriptJson = path.join(projDir, c.rescriptJsonPartialPath);
|
|
68
|
-
let bsconfigJson = path.join(projDir, c.bsconfigPartialPath);
|
|
69
|
-
let configFile = fs.readFileSync(fs.existsSync(rescriptJson) ? rescriptJson : bsconfigJson, { encoding: "utf-8" });
|
|
70
|
-
let result = JSON.parse(configFile);
|
|
71
|
-
return result;
|
|
72
|
-
}
|
|
73
|
-
catch (e) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
exports.readConfig = readConfig;
|
|
78
|
-
// Collect data from bsconfig to be able to find out the correct path of
|
|
79
|
-
// the compiled JS artifacts.
|
|
80
|
-
const getSuffixAndPathFragmentFromBsconfig = (bsconfig) => {
|
|
81
|
-
let pkgSpecs = bsconfig["package-specs"];
|
|
82
|
-
let pathFragment = "";
|
|
83
|
-
let module = c.bsconfigModuleDefault;
|
|
84
|
-
let moduleFormatObj = { module: module };
|
|
85
|
-
let suffix = c.bsconfigSuffixDefault;
|
|
86
|
-
if (pkgSpecs) {
|
|
87
|
-
if (!Array.isArray(pkgSpecs) &&
|
|
88
|
-
typeof pkgSpecs !== "string" &&
|
|
89
|
-
pkgSpecs.module) {
|
|
90
|
-
moduleFormatObj = pkgSpecs;
|
|
91
|
-
}
|
|
92
|
-
else if (typeof pkgSpecs === "string") {
|
|
93
|
-
module = pkgSpecs;
|
|
94
|
-
}
|
|
95
|
-
else if (Array.isArray(pkgSpecs) && pkgSpecs[0]) {
|
|
96
|
-
if (typeof pkgSpecs[0] === "string") {
|
|
97
|
-
module = pkgSpecs[0];
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
moduleFormatObj = pkgSpecs[0];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (moduleFormatObj["module"]) {
|
|
105
|
-
module = moduleFormatObj["module"];
|
|
106
|
-
}
|
|
107
|
-
if (!moduleFormatObj["in-source"]) {
|
|
108
|
-
pathFragment = "lib/" + getCompiledFolderName(module);
|
|
109
|
-
}
|
|
110
|
-
if (moduleFormatObj.suffix) {
|
|
111
|
-
suffix = moduleFormatObj.suffix;
|
|
112
|
-
}
|
|
113
|
-
else if (bsconfig.suffix) {
|
|
114
|
-
suffix = bsconfig.suffix;
|
|
115
|
-
}
|
|
116
|
-
return [suffix, pathFragment];
|
|
117
|
-
};
|
|
118
|
-
exports.getSuffixAndPathFragmentFromBsconfig = getSuffixAndPathFragmentFromBsconfig;
|
|
119
|
-
const getFilenameFromBsconfig = (projDir, partialFilePath) => {
|
|
120
|
-
let bsconfig = (0, exports.readConfig)(projDir);
|
|
121
|
-
if (!bsconfig) {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
let [suffix, pathFragment] = (0, exports.getSuffixAndPathFragmentFromBsconfig)(bsconfig);
|
|
125
|
-
let compiledPartialPath = (0, exports.replaceFileExtension)(partialFilePath, suffix);
|
|
126
|
-
return path.join(projDir, pathFragment, compiledPartialPath);
|
|
127
|
-
};
|
|
128
|
-
exports.getFilenameFromBsconfig = getFilenameFromBsconfig;
|
|
129
|
-
// Monorepo helpers
|
|
130
|
-
const getFilenameFromRootBsconfig = (projDir, partialFilePath) => {
|
|
131
|
-
let rootConfigPath = (0, exports.findFilePathFromProjectRoot)(path.join("..", projDir), c.rescriptJsonPartialPath);
|
|
132
|
-
if (!rootConfigPath) {
|
|
133
|
-
rootConfigPath = (0, exports.findFilePathFromProjectRoot)(path.join("..", projDir), c.bsconfigPartialPath);
|
|
134
|
-
}
|
|
135
|
-
if (!rootConfigPath) {
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
let rootConfig = (0, exports.readConfig)(path.dirname(rootConfigPath));
|
|
139
|
-
if (!rootConfig) {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
let [suffix, pathFragment] = (0, exports.getSuffixAndPathFragmentFromBsconfig)(rootConfig);
|
|
143
|
-
let compiledPartialPath = (0, exports.replaceFileExtension)(partialFilePath, suffix);
|
|
144
|
-
return path.join(projDir, pathFragment, compiledPartialPath);
|
|
145
|
-
};
|
|
146
|
-
exports.getFilenameFromRootBsconfig = getFilenameFromRootBsconfig;
|
|
147
|
-
//# sourceMappingURL=lookup.js.map
|
package/out/lookup.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lookup.js","sourceRoot":"","sources":["../src/lookup.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAI7B,+CAAiC;AAEjC,MAAM,qBAAqB,GAAG,CAAC,YAA0B,EAAU,EAAE;IACnE,QAAQ,YAAY,EAAE;QACpB,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QACf,KAAK,YAAY;YACf,OAAO,YAAY,CAAC;QACtB,KAAK,UAAU,CAAC;QAChB;YACE,OAAO,IAAI,CAAC;KACf;AACH,CAAC,CAAC;AAEK,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAE,GAAW,EAAU,EAAE;IAC5E,IAAI,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AACjE,CAAC,CAAC;AAHW,QAAA,oBAAoB,wBAG/B;AAEF,2EAA2E;AAC3E,yDAAyD;AAClD,MAAM,2BAA2B,GAAG,CACzC,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