@rohal12/spindle-lsp 0.15.24 → 0.15.26
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/LICENSE +25 -0
- package/dist/bin.js +17 -1
- package/dist/bin.js.map +2 -2
- package/package.json +5 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <https://unlicense.org>
|
|
25
|
+
|
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.26";
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
@@ -75165,6 +75165,15 @@ var init_mcp = __esm({
|
|
|
75165
75165
|
this._promptHandlersInitialized = false;
|
|
75166
75166
|
this.server = new Server(serverInfo, options);
|
|
75167
75167
|
this._maxToolInputElements = resolveMaxToolInputElements(options?.maxToolInputElements);
|
|
75168
|
+
if (options?.capabilities?.tools) {
|
|
75169
|
+
this.setToolRequestHandlers();
|
|
75170
|
+
}
|
|
75171
|
+
if (options?.capabilities?.resources) {
|
|
75172
|
+
this.setResourceRequestHandlers();
|
|
75173
|
+
}
|
|
75174
|
+
if (options?.capabilities?.prompts) {
|
|
75175
|
+
this.setPromptRequestHandlers();
|
|
75176
|
+
}
|
|
75168
75177
|
}
|
|
75169
75178
|
/**
|
|
75170
75179
|
* Access experimental features.
|
|
@@ -86533,6 +86542,13 @@ var init_main2 = __esm({
|
|
|
86533
86542
|
const startOffset = this.offsetAt(range2.start);
|
|
86534
86543
|
const endOffset = this.offsetAt(range2.end);
|
|
86535
86544
|
this._content = this._content.substring(0, startOffset) + change.text + this._content.substring(endOffset, this._content.length);
|
|
86545
|
+
const insertedEndOffset = startOffset + change.text.length;
|
|
86546
|
+
const crlfAtStart = this._content.charCodeAt(startOffset - 1) === 13 && this._content.charCodeAt(startOffset) === 10;
|
|
86547
|
+
const crlfAtEnd = this._content.charCodeAt(insertedEndOffset - 1) === 13 && this._content.charCodeAt(insertedEndOffset) === 10;
|
|
86548
|
+
if (crlfAtStart || crlfAtEnd) {
|
|
86549
|
+
this._lineOffsets = void 0;
|
|
86550
|
+
continue;
|
|
86551
|
+
}
|
|
86536
86552
|
const startLine = Math.max(range2.start.line, 0);
|
|
86537
86553
|
const endLine = Math.max(range2.end.line, 0);
|
|
86538
86554
|
let lineOffsets = this._lineOffsets;
|