@rohal12/spindle-lsp 0.15.49 → 0.15.50
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/dist/bin.js +30 -116
- package/dist/bin.js.map +4 -4
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -55,7 +55,7 @@ var VERSION;
|
|
|
55
55
|
var init_version = __esm({
|
|
56
56
|
"src/version.ts"() {
|
|
57
57
|
"use strict";
|
|
58
|
-
VERSION = false ? pkg.version : "0.15.
|
|
58
|
+
VERSION = false ? pkg.version : "0.15.50";
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
@@ -80481,10 +80481,11 @@ var require_connection = __commonJS({
|
|
|
80481
80481
|
} finally {
|
|
80482
80482
|
if (result2 instanceof Promise) {
|
|
80483
80483
|
result2.then(() => {
|
|
80484
|
-
inFlight--;
|
|
80485
|
-
triggerMessageQueue();
|
|
80486
80484
|
}).catch((error62) => {
|
|
80487
80485
|
logger.error(`Processing message queue failed: ${error62.toString()}`);
|
|
80486
|
+
}).finally(() => {
|
|
80487
|
+
inFlight--;
|
|
80488
|
+
triggerMessageQueue();
|
|
80488
80489
|
});
|
|
80489
80490
|
} else {
|
|
80490
80491
|
inFlight--;
|
|
@@ -81689,7 +81690,7 @@ var init_main = __esm({
|
|
|
81689
81690
|
ColorPresentation2.create = create;
|
|
81690
81691
|
function is2(value) {
|
|
81691
81692
|
const candidate = value;
|
|
81692
|
-
return Is2.objectLiteral(candidate) && Is2.string(candidate.label) && (Is2.undefined(candidate.textEdit) || TextEdit.is(candidate)) && (Is2.undefined(candidate.additionalTextEdits) || Is2.typedArray(candidate.additionalTextEdits, TextEdit.is));
|
|
81693
|
+
return Is2.objectLiteral(candidate) && Is2.string(candidate.label) && (Is2.undefined(candidate.textEdit) || TextEdit.is(candidate.textEdit)) && (Is2.undefined(candidate.additionalTextEdits) || Is2.typedArray(candidate.additionalTextEdits, TextEdit.is));
|
|
81693
81694
|
}
|
|
81694
81695
|
ColorPresentation2.is = is2;
|
|
81695
81696
|
})(ColorPresentation || (ColorPresentation = {}));
|
|
@@ -81721,7 +81722,7 @@ var init_main = __esm({
|
|
|
81721
81722
|
FoldingRange2.create = create;
|
|
81722
81723
|
function is2(value) {
|
|
81723
81724
|
const candidate = value;
|
|
81724
|
-
return Is2.objectLiteral(candidate) && Is2.uinteger(candidate.startLine) && Is2.uinteger(candidate.
|
|
81725
|
+
return Is2.objectLiteral(candidate) && Is2.uinteger(candidate.startLine) && Is2.uinteger(candidate.endLine) && (Is2.undefined(candidate.startCharacter) || Is2.uinteger(candidate.startCharacter)) && (Is2.undefined(candidate.endCharacter) || Is2.uinteger(candidate.endCharacter)) && (Is2.undefined(candidate.kind) || Is2.string(candidate.kind));
|
|
81725
81726
|
}
|
|
81726
81727
|
FoldingRange2.is = is2;
|
|
81727
81728
|
})(FoldingRange || (FoldingRange = {}));
|
|
@@ -84780,98 +84781,6 @@ var require_api2 = __commonJS({
|
|
|
84780
84781
|
}
|
|
84781
84782
|
});
|
|
84782
84783
|
|
|
84783
|
-
// node_modules/vscode-languageserver/lib/common/utils/uuid.js
|
|
84784
|
-
var require_uuid = __commonJS({
|
|
84785
|
-
"node_modules/vscode-languageserver/lib/common/utils/uuid.js"(exports) {
|
|
84786
|
-
"use strict";
|
|
84787
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
84788
|
-
exports.empty = void 0;
|
|
84789
|
-
exports.v4 = v4;
|
|
84790
|
-
exports.isUUID = isUUID;
|
|
84791
|
-
exports.parse = parse6;
|
|
84792
|
-
exports.generateUuid = generateUuid;
|
|
84793
|
-
var ValueUUID = class {
|
|
84794
|
-
_value;
|
|
84795
|
-
constructor(_value) {
|
|
84796
|
-
this._value = _value;
|
|
84797
|
-
}
|
|
84798
|
-
asHex() {
|
|
84799
|
-
return this._value;
|
|
84800
|
-
}
|
|
84801
|
-
equals(other) {
|
|
84802
|
-
return this.asHex() === other.asHex();
|
|
84803
|
-
}
|
|
84804
|
-
};
|
|
84805
|
-
var V4UUID = class _V4UUID extends ValueUUID {
|
|
84806
|
-
static _chars = ["0", "1", "2", "3", "4", "5", "6", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
84807
|
-
static _timeHighBits = ["8", "9", "a", "b"];
|
|
84808
|
-
static _oneOf(array2) {
|
|
84809
|
-
return array2[Math.floor(array2.length * Math.random())];
|
|
84810
|
-
}
|
|
84811
|
-
static _randomHex() {
|
|
84812
|
-
return _V4UUID._oneOf(_V4UUID._chars);
|
|
84813
|
-
}
|
|
84814
|
-
constructor() {
|
|
84815
|
-
super([
|
|
84816
|
-
_V4UUID._randomHex(),
|
|
84817
|
-
_V4UUID._randomHex(),
|
|
84818
|
-
_V4UUID._randomHex(),
|
|
84819
|
-
_V4UUID._randomHex(),
|
|
84820
|
-
_V4UUID._randomHex(),
|
|
84821
|
-
_V4UUID._randomHex(),
|
|
84822
|
-
_V4UUID._randomHex(),
|
|
84823
|
-
_V4UUID._randomHex(),
|
|
84824
|
-
"-",
|
|
84825
|
-
_V4UUID._randomHex(),
|
|
84826
|
-
_V4UUID._randomHex(),
|
|
84827
|
-
_V4UUID._randomHex(),
|
|
84828
|
-
_V4UUID._randomHex(),
|
|
84829
|
-
"-",
|
|
84830
|
-
"4",
|
|
84831
|
-
_V4UUID._randomHex(),
|
|
84832
|
-
_V4UUID._randomHex(),
|
|
84833
|
-
_V4UUID._randomHex(),
|
|
84834
|
-
"-",
|
|
84835
|
-
_V4UUID._oneOf(_V4UUID._timeHighBits),
|
|
84836
|
-
_V4UUID._randomHex(),
|
|
84837
|
-
_V4UUID._randomHex(),
|
|
84838
|
-
_V4UUID._randomHex(),
|
|
84839
|
-
"-",
|
|
84840
|
-
_V4UUID._randomHex(),
|
|
84841
|
-
_V4UUID._randomHex(),
|
|
84842
|
-
_V4UUID._randomHex(),
|
|
84843
|
-
_V4UUID._randomHex(),
|
|
84844
|
-
_V4UUID._randomHex(),
|
|
84845
|
-
_V4UUID._randomHex(),
|
|
84846
|
-
_V4UUID._randomHex(),
|
|
84847
|
-
_V4UUID._randomHex(),
|
|
84848
|
-
_V4UUID._randomHex(),
|
|
84849
|
-
_V4UUID._randomHex(),
|
|
84850
|
-
_V4UUID._randomHex(),
|
|
84851
|
-
_V4UUID._randomHex()
|
|
84852
|
-
].join(""));
|
|
84853
|
-
}
|
|
84854
|
-
};
|
|
84855
|
-
exports.empty = new ValueUUID("00000000-0000-0000-0000-000000000000");
|
|
84856
|
-
function v4() {
|
|
84857
|
-
return new V4UUID();
|
|
84858
|
-
}
|
|
84859
|
-
var _UUIDPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
84860
|
-
function isUUID(value) {
|
|
84861
|
-
return _UUIDPattern.test(value);
|
|
84862
|
-
}
|
|
84863
|
-
function parse6(value) {
|
|
84864
|
-
if (!isUUID(value)) {
|
|
84865
|
-
throw new Error("invalid uuid");
|
|
84866
|
-
}
|
|
84867
|
-
return new ValueUUID(value);
|
|
84868
|
-
}
|
|
84869
|
-
function generateUuid() {
|
|
84870
|
-
return v4().asHex();
|
|
84871
|
-
}
|
|
84872
|
-
}
|
|
84873
|
-
});
|
|
84874
|
-
|
|
84875
84784
|
// node_modules/vscode-languageserver/lib/common/progress.js
|
|
84876
84785
|
var require_progress = __commonJS({
|
|
84877
84786
|
"node_modules/vscode-languageserver/lib/common/progress.js"(exports) {
|
|
@@ -84881,7 +84790,6 @@ var require_progress = __commonJS({
|
|
|
84881
84790
|
exports.attachWorkDone = attachWorkDone;
|
|
84882
84791
|
exports.attachPartialResult = attachPartialResult;
|
|
84883
84792
|
var vscode_languageserver_protocol_1 = require_api2();
|
|
84884
|
-
var uuid_1 = require_uuid();
|
|
84885
84793
|
var WorkDoneProgressReporter;
|
|
84886
84794
|
(function(WorkDoneProgressReporter2) {
|
|
84887
84795
|
function isNullInstance(reporter) {
|
|
@@ -85008,7 +84916,7 @@ var require_progress = __commonJS({
|
|
|
85008
84916
|
}
|
|
85009
84917
|
createWorkDoneProgress() {
|
|
85010
84918
|
if (this._progressSupported) {
|
|
85011
|
-
const token = (0,
|
|
84919
|
+
const token = (0, vscode_languageserver_protocol_1.RAL)().crypto.randomUUID();
|
|
85012
84920
|
return this.connection.sendRequest(vscode_languageserver_protocol_1.WorkDoneProgressCreateRequest.type, { token }).then(() => {
|
|
85013
84921
|
const result2 = new WorkDoneProgressServerReporterImpl(this.connection, token);
|
|
85014
84922
|
return result2;
|
|
@@ -86067,6 +85975,11 @@ var require_notebook = __commonJS({
|
|
|
86067
85975
|
}
|
|
86068
85976
|
}
|
|
86069
85977
|
}
|
|
85978
|
+
const removed = [];
|
|
85979
|
+
for (const close of closed) {
|
|
85980
|
+
removed.push(this.getNotebookCell(close));
|
|
85981
|
+
this.notebookCellMap.delete(close);
|
|
85982
|
+
}
|
|
86070
85983
|
this.updateCellMap(notebookDocument);
|
|
86071
85984
|
const changeEvent = { notebookDocument };
|
|
86072
85985
|
if (metadataChanged) {
|
|
@@ -86076,10 +85989,6 @@ var require_notebook = __commonJS({
|
|
|
86076
85989
|
for (const open2 of opened) {
|
|
86077
85990
|
added.push(this.getNotebookCell(open2));
|
|
86078
85991
|
}
|
|
86079
|
-
const removed = [];
|
|
86080
|
-
for (const close of closed) {
|
|
86081
|
-
removed.push(this.getNotebookCell(close));
|
|
86082
|
-
}
|
|
86083
85992
|
const textContent = [];
|
|
86084
85993
|
for (const change2 of text3) {
|
|
86085
85994
|
textContent.push(this.getNotebookCell(change2));
|
|
@@ -86257,7 +86166,6 @@ var require_server = __commonJS({
|
|
|
86257
86166
|
exports.createConnection = createConnection2;
|
|
86258
86167
|
var vscode_languageserver_protocol_1 = require_api2();
|
|
86259
86168
|
var Is3 = __importStar(require_is());
|
|
86260
|
-
var UUID = __importStar(require_uuid());
|
|
86261
86169
|
var progress_1 = require_progress();
|
|
86262
86170
|
var configuration_1 = require_configuration();
|
|
86263
86171
|
var workspaceFolder_1 = require_workspaceFolder();
|
|
@@ -86401,7 +86309,7 @@ var require_server = __commonJS({
|
|
|
86401
86309
|
if (this._registered.has(method)) {
|
|
86402
86310
|
throw new Error(`${method} is already added to this registration`);
|
|
86403
86311
|
}
|
|
86404
|
-
const id =
|
|
86312
|
+
const id = (0, vscode_languageserver_protocol_1.RAL)().crypto.randomUUID();
|
|
86405
86313
|
this._registrations.push({
|
|
86406
86314
|
id,
|
|
86407
86315
|
method,
|
|
@@ -86495,7 +86403,7 @@ var require_server = __commonJS({
|
|
|
86495
86403
|
}
|
|
86496
86404
|
registerSingle1(unregistration, type, registerOptions) {
|
|
86497
86405
|
const method = Is3.string(type) ? type : type.method;
|
|
86498
|
-
const id =
|
|
86406
|
+
const id = (0, vscode_languageserver_protocol_1.RAL)().crypto.randomUUID();
|
|
86499
86407
|
const params = {
|
|
86500
86408
|
registrations: [{ id, method, registerOptions: registerOptions || {} }]
|
|
86501
86409
|
};
|
|
@@ -86512,7 +86420,7 @@ var require_server = __commonJS({
|
|
|
86512
86420
|
}
|
|
86513
86421
|
registerSingle2(type, registerOptions) {
|
|
86514
86422
|
const method = Is3.string(type) ? type : type.method;
|
|
86515
|
-
const id =
|
|
86423
|
+
const id = (0, vscode_languageserver_protocol_1.RAL)().crypto.randomUUID();
|
|
86516
86424
|
const params = {
|
|
86517
86425
|
registrations: [{ id, method, registerOptions: registerOptions || {} }]
|
|
86518
86426
|
};
|
|
@@ -87142,7 +87050,6 @@ var require_files = __commonJS({
|
|
|
87142
87050
|
});
|
|
87143
87051
|
}
|
|
87144
87052
|
function resolveGlobalNodePath(tracer) {
|
|
87145
|
-
let npmCommand = "npm";
|
|
87146
87053
|
const env = /* @__PURE__ */ Object.create(null);
|
|
87147
87054
|
Object.keys(process.env).forEach((key) => env[key] = process.env[key]);
|
|
87148
87055
|
env["NO_UPDATE_NOTIFIER"] = "true";
|
|
@@ -87151,14 +87058,13 @@ var require_files = __commonJS({
|
|
|
87151
87058
|
env
|
|
87152
87059
|
};
|
|
87153
87060
|
if (isWindows()) {
|
|
87154
|
-
npmCommand = "npm.cmd";
|
|
87155
87061
|
options.shell = true;
|
|
87156
87062
|
}
|
|
87157
87063
|
const handler = () => {
|
|
87158
87064
|
};
|
|
87159
87065
|
try {
|
|
87160
87066
|
process.on("SIGPIPE", handler);
|
|
87161
|
-
const stdout = (0, child_process_1.spawnSync)(
|
|
87067
|
+
const stdout = (isWindows() ? (0, child_process_1.spawnSync)("npm.cmd config get prefix", options) : (0, child_process_1.spawnSync)("npm", ["config", "get", "prefix"], options)).stdout;
|
|
87162
87068
|
if (!stdout) {
|
|
87163
87069
|
if (tracer) {
|
|
87164
87070
|
tracer(`'npm config get prefix' didn't return a value.`);
|
|
@@ -87184,19 +87090,17 @@ var require_files = __commonJS({
|
|
|
87184
87090
|
}
|
|
87185
87091
|
}
|
|
87186
87092
|
function resolveGlobalYarnPath(tracer) {
|
|
87187
|
-
let yarnCommand = "yarn";
|
|
87188
87093
|
const options = {
|
|
87189
87094
|
encoding: "utf8"
|
|
87190
87095
|
};
|
|
87191
87096
|
if (isWindows()) {
|
|
87192
|
-
yarnCommand = "yarn.cmd";
|
|
87193
87097
|
options.shell = true;
|
|
87194
87098
|
}
|
|
87195
87099
|
const handler = () => {
|
|
87196
87100
|
};
|
|
87197
87101
|
try {
|
|
87198
87102
|
process.on("SIGPIPE", handler);
|
|
87199
|
-
const results = (0, child_process_1.spawnSync)(
|
|
87103
|
+
const results = isWindows() ? (0, child_process_1.spawnSync)("yarn.cmd global dir --json", options) : (0, child_process_1.spawnSync)("yarn", ["global", "dir", "--json"], options);
|
|
87200
87104
|
const stdout = results.stdout;
|
|
87201
87105
|
if (!stdout) {
|
|
87202
87106
|
if (tracer) {
|
|
@@ -87275,6 +87179,7 @@ var require_ril = __commonJS({
|
|
|
87275
87179
|
"use strict";
|
|
87276
87180
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87277
87181
|
var util_1 = __require("util");
|
|
87182
|
+
var crypto_1 = __require("crypto");
|
|
87278
87183
|
var api_1 = require_api();
|
|
87279
87184
|
var MessageBuffer = class _MessageBuffer extends api_1.AbstractMessageBuffer {
|
|
87280
87185
|
static emptyBuffer = Buffer.allocUnsafe(0);
|
|
@@ -87298,7 +87203,7 @@ var require_ril = __commonJS({
|
|
|
87298
87203
|
if (length === void 0) {
|
|
87299
87204
|
return buffer instanceof Buffer ? buffer : Buffer.from(buffer);
|
|
87300
87205
|
} else {
|
|
87301
|
-
return buffer instanceof Buffer ? buffer.slice(0, length) : Buffer.from(buffer
|
|
87206
|
+
return buffer instanceof Buffer ? buffer.slice(0, length) : Buffer.from(buffer.subarray(0, length));
|
|
87302
87207
|
}
|
|
87303
87208
|
}
|
|
87304
87209
|
allocNative(length) {
|
|
@@ -87365,6 +87270,9 @@ var require_ril = __commonJS({
|
|
|
87365
87270
|
}
|
|
87366
87271
|
};
|
|
87367
87272
|
var _ril = Object.freeze({
|
|
87273
|
+
crypto: Object.freeze({
|
|
87274
|
+
randomUUID: () => (0, crypto_1.randomUUID)()
|
|
87275
|
+
}),
|
|
87368
87276
|
messageBuffer: Object.freeze({
|
|
87369
87277
|
create: (encoding) => new MessageBuffer(encoding)
|
|
87370
87278
|
}),
|
|
@@ -87515,7 +87423,7 @@ var require_main = __commonJS({
|
|
|
87515
87423
|
this.errorCount = 0;
|
|
87516
87424
|
const eventEmitter = this.process;
|
|
87517
87425
|
eventEmitter.on("error", (error62) => this.fireError(error62));
|
|
87518
|
-
eventEmitter.on("close", () => this.fireClose);
|
|
87426
|
+
eventEmitter.on("close", () => this.fireClose());
|
|
87519
87427
|
}
|
|
87520
87428
|
write(msg) {
|
|
87521
87429
|
try {
|
|
@@ -87548,7 +87456,7 @@ var require_main = __commonJS({
|
|
|
87548
87456
|
constructor(port) {
|
|
87549
87457
|
super();
|
|
87550
87458
|
this.onData = new api_1.Emitter();
|
|
87551
|
-
port.on("close", () => this.fireClose);
|
|
87459
|
+
port.on("close", () => this.fireClose());
|
|
87552
87460
|
port.on("error", (error62) => this.fireError(error62));
|
|
87553
87461
|
port.on("message", (message) => {
|
|
87554
87462
|
this.onData.fire(message);
|
|
@@ -87657,6 +87565,9 @@ var require_main = __commonJS({
|
|
|
87657
87565
|
resolve8({
|
|
87658
87566
|
onConnected: () => {
|
|
87659
87567
|
return connected;
|
|
87568
|
+
},
|
|
87569
|
+
close: () => {
|
|
87570
|
+
server.close();
|
|
87660
87571
|
}
|
|
87661
87572
|
});
|
|
87662
87573
|
});
|
|
@@ -87695,6 +87606,9 @@ var require_main = __commonJS({
|
|
|
87695
87606
|
port: () => boundPort,
|
|
87696
87607
|
onConnected: () => {
|
|
87697
87608
|
return connected;
|
|
87609
|
+
},
|
|
87610
|
+
close: () => {
|
|
87611
|
+
server.close();
|
|
87698
87612
|
}
|
|
87699
87613
|
});
|
|
87700
87614
|
});
|