@volar/language-server 1.11.0 → 1.11.1
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/lib/common/documents.js
CHANGED
|
@@ -132,13 +132,13 @@ function combineContinuousChangeRanges(...changeRanges) {
|
|
|
132
132
|
return changeRange;
|
|
133
133
|
}
|
|
134
134
|
exports.combineContinuousChangeRanges = combineContinuousChangeRanges;
|
|
135
|
-
// https://tsplay.dev/
|
|
135
|
+
// https://tsplay.dev/mMldVN - @browsnet
|
|
136
136
|
function _combineContinuousChangeRanges(a, b) {
|
|
137
137
|
const aStart = a.span.start;
|
|
138
138
|
const aEnd = a.span.start + a.span.length;
|
|
139
139
|
const aDiff = a.newLength - a.span.length;
|
|
140
140
|
const changeBegin = aStart + Math.min(a.span.length, a.newLength);
|
|
141
|
-
const rollback = (start) => start > changeBegin ? start - aDiff : start;
|
|
141
|
+
const rollback = (start) => start > changeBegin ? Math.max(aStart, start - aDiff) : start;
|
|
142
142
|
const bStart = rollback(b.span.start);
|
|
143
143
|
const bEnd = rollback(b.span.start + b.span.length);
|
|
144
144
|
const bDiff = b.newLength - b.span.length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"directory": "packages/language-server"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@volar/language-core": "1.11.
|
|
16
|
-
"@volar/language-service": "1.11.
|
|
17
|
-
"@volar/typescript": "1.11.
|
|
15
|
+
"@volar/language-core": "1.11.1",
|
|
16
|
+
"@volar/language-service": "1.11.1",
|
|
17
|
+
"@volar/typescript": "1.11.1",
|
|
18
18
|
"@vscode/l10n": "^0.0.16",
|
|
19
19
|
"path-browserify": "^1.0.1",
|
|
20
20
|
"request-light": "^0.7.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/path-browserify": "latest",
|
|
28
|
-
"@volar/source-map": "1.11.
|
|
28
|
+
"@volar/source-map": "1.11.1"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "188f49ee79bd2ea8e8fc32b80003c85f79868f9d"
|
|
31
31
|
}
|