@rohal12/spindle-lsp 0.15.24 → 0.15.25
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 +17 -1
- package/dist/bin.js.map +2 -2
- package/package.json +5 -5
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.25";
|
|
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;
|