@ttsc/vscode 0.23.0 → 0.24.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/lib/extension.js CHANGED
@@ -10148,9 +10148,9 @@ var require_commonjs = __commonJS({
10148
10148
  }
10149
10149
  });
10150
10150
 
10151
- // ../../node_modules/.pnpm/brace-expansion@5.0.8/node_modules/brace-expansion/dist/commonjs/index.js
10151
+ // ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/commonjs/index.js
10152
10152
  var require_commonjs2 = __commonJS({
10153
- "../../node_modules/.pnpm/brace-expansion@5.0.8/node_modules/brace-expansion/dist/commonjs/index.js"(exports2) {
10153
+ "../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/commonjs/index.js"(exports2) {
10154
10154
  "use strict";
10155
10155
  Object.defineProperty(exports2, "__esModule", { value: true });
10156
10156
  exports2.EXPANSION_MAX_LENGTH = exports2.EXPANSION_MAX = void 0;
@@ -10243,7 +10243,7 @@ var require_commonjs2 = __commonJS({
10243
10243
  }
10244
10244
  return out;
10245
10245
  }
10246
- function expandSequence(body, isAlphaSequence, max) {
10246
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
10247
10247
  const n = body.split(/\.\./);
10248
10248
  const N = [];
10249
10249
  if (n[0] === void 0 || n[1] === void 0) {
@@ -10260,6 +10260,7 @@ var require_commonjs2 = __commonJS({
10260
10260
  test = gte;
10261
10261
  }
10262
10262
  const pad = n.some(isPadded);
10263
+ let length = 0;
10263
10264
  for (let i = x; test(i, y) && N.length < max; i += incr) {
10264
10265
  let c;
10265
10266
  if (isAlphaSequence) {
@@ -10281,7 +10282,10 @@ var require_commonjs2 = __commonJS({
10281
10282
  }
10282
10283
  }
10283
10284
  }
10285
+ if (length + c.length > maxLength)
10286
+ break;
10284
10287
  N.push(c);
10288
+ length += c.length;
10285
10289
  }
10286
10290
  return N;
10287
10291
  }
@@ -10321,7 +10325,7 @@ var require_commonjs2 = __commonJS({
10321
10325
  }
10322
10326
  let values;
10323
10327
  if (isSequence) {
10324
- values = expandSequence(m.body, isAlphaSequence, max);
10328
+ values = expandSequence(m.body, isAlphaSequence, max, maxLength);
10325
10329
  } else {
10326
10330
  let n = parseCommaParts(m.body);
10327
10331
  if (n.length === 1 && n[0] !== void 0) {
@@ -10334,9 +10338,26 @@ var require_commonjs2 = __commonJS({
10334
10338
  continue;
10335
10339
  }
10336
10340
  }
10341
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
10342
+ for (let d = 0; dropsEmpties && d < acc.length; d++) {
10343
+ if (acc[d]) {
10344
+ dropsEmpties = false;
10345
+ }
10346
+ }
10337
10347
  values = [];
10338
- for (let j = 0; j < n.length; j++) {
10339
- values.push.apply(values, expand_(n[j], max, maxLength, false));
10348
+ let valuesLength = 0;
10349
+ outer: for (let j = 0; j < n.length; j++) {
10350
+ const expanded = expand_(n[j], max, maxLength, false);
10351
+ for (let k = 0; k < expanded.length; k++) {
10352
+ const v = expanded[k];
10353
+ if (dropsEmpties && !v)
10354
+ continue;
10355
+ if (values.length >= max || valuesLength + v.length > maxLength) {
10356
+ break outer;
10357
+ }
10358
+ values.push(v);
10359
+ valuesLength += v.length;
10360
+ }
10340
10361
  }
10341
10362
  }
10342
10363
  acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ttsc/vscode",
3
3
  "displayName": "ttsc",
4
4
  "description": "TypeScript-Go and ttsc plugin diagnostics, completions, lint actions, and formatting for VS Code.",
5
- "version": "0.23.0",
5
+ "version": "0.24.0",
6
6
  "publisher": "samchon",
7
7
  "icon": "images/icon.png",
8
8
  "license": "MIT",
@@ -105,7 +105,7 @@
105
105
  "rimraf": "^6.1.2",
106
106
  "typescript": "^7.0.2",
107
107
  "vscode-languageclient": "^10.1.0",
108
- "ttsc": "0.23.0"
108
+ "ttsc": "0.24.0"
109
109
  },
110
110
  "scripts": {
111
111
  "build": "tsc --noEmit && rimraf lib dist && node build/build.cjs"