@codingame/monaco-vscode-rollup-vsix-plugin 8.0.4 → 9.0.2
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/package.json +1 -1
- package/rollup-vsix-plugin.js +91 -57
- package/vscode-dts/vscode.proposed.aiTextSearchProviderNew.d.ts +1 -85
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +42 -13
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +5 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +0 -17
- package/vscode-dts/vscode.proposed.contribChatParticipantDetection.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryTitleMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.contribViewContainerTitle.d.ts +8 -0
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +6 -3
- package/vscode-dts/vscode.proposed.extensionsAny.d.ts +1 -0
- package/vscode-dts/vscode.proposed.fileSearchProviderNew.d.ts +7 -6
- package/vscode-dts/vscode.proposed.findFiles2New.d.ts +36 -11
- package/vscode-dts/vscode.proposed.findTextInFilesNew.d.ts +51 -30
- package/vscode-dts/vscode.proposed.interactive.d.ts +0 -2
- package/vscode-dts/vscode.proposed.lmTools.d.ts +119 -20
- package/vscode-dts/vscode.proposed.notebookReplDocument.d.ts +20 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +1 -0
- package/vscode-dts/vscode.proposed.testObserver.d.ts +6 -0
- package/vscode-dts/vscode.proposed.textSearchCompleteNew.d.ts +1 -9
- package/vscode-dts/vscode.proposed.textSearchProviderNew.d.ts +58 -17
- package/vscode-dts/vscode.proposed.authGetSessions.d.ts +0 -70
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +0 -338
- package/vscode-dts/vscode.proposed.testMessageStackTrace.d.ts +0 -38
package/package.json
CHANGED
package/rollup-vsix-plugin.js
CHANGED
|
@@ -831,8 +831,23 @@ function visit(text, visitor, options = ParseOptions.DEFAULT) {
|
|
|
831
831
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
832
832
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
833
833
|
*--------------------------------------------------------------------------------------------*/
|
|
834
|
-
|
|
835
|
-
|
|
834
|
+
/*
|
|
835
|
+
* This module exists so that the AMD build of the monaco editor can replace this with an async loader plugin.
|
|
836
|
+
* If you add new functions to this module make sure that they are also provided in the AMD build of the monaco editor.
|
|
837
|
+
*/
|
|
838
|
+
function getNLSMessages() {
|
|
839
|
+
return globalThis._VSCODE_NLS_MESSAGES;
|
|
840
|
+
}
|
|
841
|
+
function getNLSLanguage() {
|
|
842
|
+
return globalThis._VSCODE_NLS_LANGUAGE;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
/*---------------------------------------------------------------------------------------------
|
|
846
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
847
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
848
|
+
*--------------------------------------------------------------------------------------------*/
|
|
849
|
+
// eslint-disable-next-line local/code-import-patterns
|
|
850
|
+
const isPseudo = getNLSLanguage() === 'pseudo' || (typeof document !== 'undefined' && document.location && document.location.hash.indexOf('pseudo=true') >= 0);
|
|
836
851
|
function _format(message, args) {
|
|
837
852
|
let result;
|
|
838
853
|
if (args.length === 0) {
|
|
@@ -873,8 +888,7 @@ function localize(data /* | number when built */, message /* | null when built *
|
|
|
873
888
|
* depending on the target context.
|
|
874
889
|
*/
|
|
875
890
|
function lookupMessage(index, fallback) {
|
|
876
|
-
|
|
877
|
-
const message = globalThis._VSCODE_NLS_MESSAGES?.[index];
|
|
891
|
+
const message = getNLSMessages()?.[index];
|
|
878
892
|
if (typeof message !== 'string') {
|
|
879
893
|
if (typeof fallback === 'string') {
|
|
880
894
|
return fallback;
|
|
@@ -1287,7 +1301,7 @@ var utils$j = {};
|
|
|
1287
1301
|
*/
|
|
1288
1302
|
|
|
1289
1303
|
exports.escapeNode = (block, n = 0, type) => {
|
|
1290
|
-
|
|
1304
|
+
const node = block.nodes[n];
|
|
1291
1305
|
if (!node) return;
|
|
1292
1306
|
|
|
1293
1307
|
if ((type && node.type === type) || node.type === 'open' || node.type === 'close') {
|
|
@@ -1356,13 +1370,23 @@ var utils$j = {};
|
|
|
1356
1370
|
|
|
1357
1371
|
exports.flatten = (...args) => {
|
|
1358
1372
|
const result = [];
|
|
1373
|
+
|
|
1359
1374
|
const flat = arr => {
|
|
1360
1375
|
for (let i = 0; i < arr.length; i++) {
|
|
1361
|
-
|
|
1362
|
-
|
|
1376
|
+
const ele = arr[i];
|
|
1377
|
+
|
|
1378
|
+
if (Array.isArray(ele)) {
|
|
1379
|
+
flat(ele);
|
|
1380
|
+
continue;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
if (ele !== undefined) {
|
|
1384
|
+
result.push(ele);
|
|
1385
|
+
}
|
|
1363
1386
|
}
|
|
1364
1387
|
return result;
|
|
1365
1388
|
};
|
|
1389
|
+
|
|
1366
1390
|
flat(args);
|
|
1367
1391
|
return result;
|
|
1368
1392
|
};
|
|
@@ -1371,9 +1395,9 @@ var utils$j = {};
|
|
|
1371
1395
|
const utils$i = utils$j;
|
|
1372
1396
|
|
|
1373
1397
|
var stringify$4 = (ast, options = {}) => {
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1398
|
+
const stringify = (node, parent = {}) => {
|
|
1399
|
+
const invalidBlock = options.escapeInvalid && utils$i.isInvalidBrace(parent);
|
|
1400
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
1377
1401
|
let output = '';
|
|
1378
1402
|
|
|
1379
1403
|
if (node.value) {
|
|
@@ -1388,7 +1412,7 @@ var stringify$4 = (ast, options = {}) => {
|
|
|
1388
1412
|
}
|
|
1389
1413
|
|
|
1390
1414
|
if (node.nodes) {
|
|
1391
|
-
for (
|
|
1415
|
+
for (const child of node.nodes) {
|
|
1392
1416
|
output += stringify(child);
|
|
1393
1417
|
}
|
|
1394
1418
|
}
|
|
@@ -1762,7 +1786,7 @@ const toMaxLen = (input, maxLength) => {
|
|
|
1762
1786
|
return negative ? ('-' + input) : input;
|
|
1763
1787
|
};
|
|
1764
1788
|
|
|
1765
|
-
const toSequence = (parts, options) => {
|
|
1789
|
+
const toSequence = (parts, options, maxLen) => {
|
|
1766
1790
|
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
1767
1791
|
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
1768
1792
|
|
|
@@ -1772,11 +1796,11 @@ const toSequence = (parts, options) => {
|
|
|
1772
1796
|
let result;
|
|
1773
1797
|
|
|
1774
1798
|
if (parts.positives.length) {
|
|
1775
|
-
positives = parts.positives.join('|');
|
|
1799
|
+
positives = parts.positives.map(v => toMaxLen(String(v), maxLen)).join('|');
|
|
1776
1800
|
}
|
|
1777
1801
|
|
|
1778
1802
|
if (parts.negatives.length) {
|
|
1779
|
-
negatives = `-(${prefix}${parts.negatives.join('|')})`;
|
|
1803
|
+
negatives = `-(${prefix}${parts.negatives.map(v => toMaxLen(String(v), maxLen)).join('|')})`;
|
|
1780
1804
|
}
|
|
1781
1805
|
|
|
1782
1806
|
if (positives && negatives) {
|
|
@@ -1874,7 +1898,7 @@ const fillNumbers = (start, end, step = 1, options = {}) => {
|
|
|
1874
1898
|
|
|
1875
1899
|
if (options.toRegex === true) {
|
|
1876
1900
|
return step > 1
|
|
1877
|
-
? toSequence(parts, options)
|
|
1901
|
+
? toSequence(parts, options, maxLen)
|
|
1878
1902
|
: toRegex(range, null, { wrap: false, ...options });
|
|
1879
1903
|
}
|
|
1880
1904
|
|
|
@@ -1886,7 +1910,6 @@ const fillLetters = (start, end, step = 1, options = {}) => {
|
|
|
1886
1910
|
return invalidRange(start, end, options);
|
|
1887
1911
|
}
|
|
1888
1912
|
|
|
1889
|
-
|
|
1890
1913
|
let format = options.transform || (val => String.fromCharCode(val));
|
|
1891
1914
|
let a = `${start}`.charCodeAt(0);
|
|
1892
1915
|
let b = `${end}`.charCodeAt(0);
|
|
@@ -1954,30 +1977,32 @@ const fill$1 = fillRange;
|
|
|
1954
1977
|
const utils$h = utils$j;
|
|
1955
1978
|
|
|
1956
1979
|
const compile$1 = (ast, options = {}) => {
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1980
|
+
const walk = (node, parent = {}) => {
|
|
1981
|
+
const invalidBlock = utils$h.isInvalidBrace(parent);
|
|
1982
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
1983
|
+
const invalid = invalidBlock === true || invalidNode === true;
|
|
1984
|
+
const prefix = options.escapeInvalid === true ? '\\' : '';
|
|
1962
1985
|
let output = '';
|
|
1963
1986
|
|
|
1964
1987
|
if (node.isOpen === true) {
|
|
1965
1988
|
return prefix + node.value;
|
|
1966
1989
|
}
|
|
1990
|
+
|
|
1967
1991
|
if (node.isClose === true) {
|
|
1992
|
+
console.log('node.isClose', prefix, node.value);
|
|
1968
1993
|
return prefix + node.value;
|
|
1969
1994
|
}
|
|
1970
1995
|
|
|
1971
1996
|
if (node.type === 'open') {
|
|
1972
|
-
return invalid ?
|
|
1997
|
+
return invalid ? prefix + node.value : '(';
|
|
1973
1998
|
}
|
|
1974
1999
|
|
|
1975
2000
|
if (node.type === 'close') {
|
|
1976
|
-
return invalid ?
|
|
2001
|
+
return invalid ? prefix + node.value : ')';
|
|
1977
2002
|
}
|
|
1978
2003
|
|
|
1979
2004
|
if (node.type === 'comma') {
|
|
1980
|
-
return node.prev.type === 'comma' ? '' :
|
|
2005
|
+
return node.prev.type === 'comma' ? '' : invalid ? node.value : '|';
|
|
1981
2006
|
}
|
|
1982
2007
|
|
|
1983
2008
|
if (node.value) {
|
|
@@ -1985,8 +2010,8 @@ const compile$1 = (ast, options = {}) => {
|
|
|
1985
2010
|
}
|
|
1986
2011
|
|
|
1987
2012
|
if (node.nodes && node.ranges > 0) {
|
|
1988
|
-
|
|
1989
|
-
|
|
2013
|
+
const args = utils$h.reduce(node.nodes);
|
|
2014
|
+
const range = fill$1(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
|
|
1990
2015
|
|
|
1991
2016
|
if (range.length !== 0) {
|
|
1992
2017
|
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
@@ -1994,10 +2019,11 @@ const compile$1 = (ast, options = {}) => {
|
|
|
1994
2019
|
}
|
|
1995
2020
|
|
|
1996
2021
|
if (node.nodes) {
|
|
1997
|
-
for (
|
|
2022
|
+
for (const child of node.nodes) {
|
|
1998
2023
|
output += walk(child, node);
|
|
1999
2024
|
}
|
|
2000
2025
|
}
|
|
2026
|
+
|
|
2001
2027
|
return output;
|
|
2002
2028
|
};
|
|
2003
2029
|
|
|
@@ -2011,7 +2037,7 @@ const stringify$2 = stringify$4;
|
|
|
2011
2037
|
const utils$g = utils$j;
|
|
2012
2038
|
|
|
2013
2039
|
const append = (queue = '', stash = '', enclose = false) => {
|
|
2014
|
-
|
|
2040
|
+
const result = [];
|
|
2015
2041
|
|
|
2016
2042
|
queue = [].concat(queue);
|
|
2017
2043
|
stash = [].concat(stash);
|
|
@@ -2021,15 +2047,15 @@ const append = (queue = '', stash = '', enclose = false) => {
|
|
|
2021
2047
|
return enclose ? utils$g.flatten(stash).map(ele => `{${ele}}`) : stash;
|
|
2022
2048
|
}
|
|
2023
2049
|
|
|
2024
|
-
for (
|
|
2050
|
+
for (const item of queue) {
|
|
2025
2051
|
if (Array.isArray(item)) {
|
|
2026
|
-
for (
|
|
2052
|
+
for (const value of item) {
|
|
2027
2053
|
result.push(append(value, stash, enclose));
|
|
2028
2054
|
}
|
|
2029
2055
|
} else {
|
|
2030
2056
|
for (let ele of stash) {
|
|
2031
2057
|
if (enclose === true && typeof ele === 'string') ele = `{${ele}}`;
|
|
2032
|
-
result.push(Array.isArray(ele) ? append(item, ele, enclose) :
|
|
2058
|
+
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
2033
2059
|
}
|
|
2034
2060
|
}
|
|
2035
2061
|
}
|
|
@@ -2037,9 +2063,9 @@ const append = (queue = '', stash = '', enclose = false) => {
|
|
|
2037
2063
|
};
|
|
2038
2064
|
|
|
2039
2065
|
const expand$1 = (ast, options = {}) => {
|
|
2040
|
-
|
|
2066
|
+
const rangeLimit = options.rangeLimit === undefined ? 1000 : options.rangeLimit;
|
|
2041
2067
|
|
|
2042
|
-
|
|
2068
|
+
const walk = (node, parent = {}) => {
|
|
2043
2069
|
node.queue = [];
|
|
2044
2070
|
|
|
2045
2071
|
let p = parent;
|
|
@@ -2061,7 +2087,7 @@ const expand$1 = (ast, options = {}) => {
|
|
|
2061
2087
|
}
|
|
2062
2088
|
|
|
2063
2089
|
if (node.nodes && node.ranges > 0) {
|
|
2064
|
-
|
|
2090
|
+
const args = utils$g.reduce(node.nodes);
|
|
2065
2091
|
|
|
2066
2092
|
if (utils$g.exceedsLimit(...args, options.step, rangeLimit)) {
|
|
2067
2093
|
throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.');
|
|
@@ -2077,7 +2103,7 @@ const expand$1 = (ast, options = {}) => {
|
|
|
2077
2103
|
return;
|
|
2078
2104
|
}
|
|
2079
2105
|
|
|
2080
|
-
|
|
2106
|
+
const enclose = utils$g.encloseBrace(node);
|
|
2081
2107
|
let queue = node.queue;
|
|
2082
2108
|
let block = node;
|
|
2083
2109
|
|
|
@@ -2087,7 +2113,7 @@ const expand$1 = (ast, options = {}) => {
|
|
|
2087
2113
|
}
|
|
2088
2114
|
|
|
2089
2115
|
for (let i = 0; i < node.nodes.length; i++) {
|
|
2090
|
-
|
|
2116
|
+
const child = node.nodes[i];
|
|
2091
2117
|
|
|
2092
2118
|
if (child.type === 'comma' && node.type === 'brace') {
|
|
2093
2119
|
if (i === 1) queue.push('');
|
|
@@ -2119,7 +2145,7 @@ const expand$1 = (ast, options = {}) => {
|
|
|
2119
2145
|
var expand_1 = expand$1;
|
|
2120
2146
|
|
|
2121
2147
|
var constants$4 = {
|
|
2122
|
-
MAX_LENGTH:
|
|
2148
|
+
MAX_LENGTH: 10000,
|
|
2123
2149
|
|
|
2124
2150
|
// Digits
|
|
2125
2151
|
CHAR_0: '0', /* 0 */
|
|
@@ -2207,18 +2233,18 @@ const parse$3 = (input, options = {}) => {
|
|
|
2207
2233
|
throw new TypeError('Expected a string');
|
|
2208
2234
|
}
|
|
2209
2235
|
|
|
2210
|
-
|
|
2211
|
-
|
|
2236
|
+
const opts = options || {};
|
|
2237
|
+
const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
|
|
2212
2238
|
if (input.length > max) {
|
|
2213
2239
|
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
2214
2240
|
}
|
|
2215
2241
|
|
|
2216
|
-
|
|
2217
|
-
|
|
2242
|
+
const ast = { type: 'root', input, nodes: [] };
|
|
2243
|
+
const stack = [ast];
|
|
2218
2244
|
let block = ast;
|
|
2219
2245
|
let prev = ast;
|
|
2220
2246
|
let brackets = 0;
|
|
2221
|
-
|
|
2247
|
+
const length = input.length;
|
|
2222
2248
|
let index = 0;
|
|
2223
2249
|
let depth = 0;
|
|
2224
2250
|
let value;
|
|
@@ -2283,6 +2309,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
2283
2309
|
|
|
2284
2310
|
if (value === CHAR_LEFT_SQUARE_BRACKET$1) {
|
|
2285
2311
|
brackets++;
|
|
2312
|
+
|
|
2286
2313
|
let next;
|
|
2287
2314
|
|
|
2288
2315
|
while (index < length && (next = advance())) {
|
|
@@ -2338,7 +2365,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
2338
2365
|
*/
|
|
2339
2366
|
|
|
2340
2367
|
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
2341
|
-
|
|
2368
|
+
const open = value;
|
|
2342
2369
|
let next;
|
|
2343
2370
|
|
|
2344
2371
|
if (options.keepQuotes !== true) {
|
|
@@ -2370,8 +2397,8 @@ const parse$3 = (input, options = {}) => {
|
|
|
2370
2397
|
if (value === CHAR_LEFT_CURLY_BRACE$1) {
|
|
2371
2398
|
depth++;
|
|
2372
2399
|
|
|
2373
|
-
|
|
2374
|
-
|
|
2400
|
+
const dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true;
|
|
2401
|
+
const brace = {
|
|
2375
2402
|
type: 'brace',
|
|
2376
2403
|
open: true,
|
|
2377
2404
|
close: false,
|
|
@@ -2398,7 +2425,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
2398
2425
|
continue;
|
|
2399
2426
|
}
|
|
2400
2427
|
|
|
2401
|
-
|
|
2428
|
+
const type = 'close';
|
|
2402
2429
|
block = stack.pop();
|
|
2403
2430
|
block.close = true;
|
|
2404
2431
|
|
|
@@ -2416,7 +2443,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
2416
2443
|
if (value === CHAR_COMMA$1 && depth > 0) {
|
|
2417
2444
|
if (block.ranges > 0) {
|
|
2418
2445
|
block.ranges = 0;
|
|
2419
|
-
|
|
2446
|
+
const open = block.nodes.shift();
|
|
2420
2447
|
block.nodes = [open, { type: 'text', value: stringify$1(block) }];
|
|
2421
2448
|
}
|
|
2422
2449
|
|
|
@@ -2430,7 +2457,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
2430
2457
|
*/
|
|
2431
2458
|
|
|
2432
2459
|
if (value === CHAR_DOT$1 && depth > 0 && block.commas === 0) {
|
|
2433
|
-
|
|
2460
|
+
const siblings = block.nodes;
|
|
2434
2461
|
|
|
2435
2462
|
if (depth === 0 || siblings.length === 0) {
|
|
2436
2463
|
push({ type: 'text', value });
|
|
@@ -2457,7 +2484,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
2457
2484
|
if (prev.type === 'range') {
|
|
2458
2485
|
siblings.pop();
|
|
2459
2486
|
|
|
2460
|
-
|
|
2487
|
+
const before = siblings[siblings.length - 1];
|
|
2461
2488
|
before.value += prev.value + value;
|
|
2462
2489
|
prev = before;
|
|
2463
2490
|
block.ranges--;
|
|
@@ -2490,8 +2517,8 @@ const parse$3 = (input, options = {}) => {
|
|
|
2490
2517
|
});
|
|
2491
2518
|
|
|
2492
2519
|
// get the location of the block on parent.nodes (block's siblings)
|
|
2493
|
-
|
|
2494
|
-
|
|
2520
|
+
const parent = stack[stack.length - 1];
|
|
2521
|
+
const index = parent.nodes.indexOf(block);
|
|
2495
2522
|
// replace the (invalid) block with it's nodes
|
|
2496
2523
|
parent.nodes.splice(index, 1, ...block.nodes);
|
|
2497
2524
|
}
|
|
@@ -2526,8 +2553,8 @@ const braces$1 = (input, options = {}) => {
|
|
|
2526
2553
|
let output = [];
|
|
2527
2554
|
|
|
2528
2555
|
if (Array.isArray(input)) {
|
|
2529
|
-
for (
|
|
2530
|
-
|
|
2556
|
+
for (const pattern of input) {
|
|
2557
|
+
const result = braces$1.create(pattern, options);
|
|
2531
2558
|
if (Array.isArray(result)) {
|
|
2532
2559
|
output.push(...result);
|
|
2533
2560
|
} else {
|
|
@@ -2661,7 +2688,7 @@ braces$1.create = (input, options = {}) => {
|
|
|
2661
2688
|
return [input];
|
|
2662
2689
|
}
|
|
2663
2690
|
|
|
2664
|
-
|
|
2691
|
+
return options.expand !== true
|
|
2665
2692
|
? braces$1.compile(input, options)
|
|
2666
2693
|
: braces$1.expand(input, options);
|
|
2667
2694
|
};
|
|
@@ -4745,7 +4772,12 @@ const util = require$$0$1;
|
|
|
4745
4772
|
const braces = braces_1;
|
|
4746
4773
|
const picomatch = picomatch$1;
|
|
4747
4774
|
const utils$b = utils$f;
|
|
4748
|
-
|
|
4775
|
+
|
|
4776
|
+
const isEmptyString = v => v === '' || v === './';
|
|
4777
|
+
const hasBraces = v => {
|
|
4778
|
+
const index = v.indexOf('{');
|
|
4779
|
+
return index > -1 && v.indexOf('}', index) > -1;
|
|
4780
|
+
};
|
|
4749
4781
|
|
|
4750
4782
|
/**
|
|
4751
4783
|
* Returns an array of strings that match one or more glob patterns.
|
|
@@ -5186,7 +5218,7 @@ micromatch$1.parse = (patterns, options) => {
|
|
|
5186
5218
|
|
|
5187
5219
|
micromatch$1.braces = (pattern, options) => {
|
|
5188
5220
|
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
|
5189
|
-
if ((options && options.nobrace === true) ||
|
|
5221
|
+
if ((options && options.nobrace === true) || !hasBraces(pattern)) {
|
|
5190
5222
|
return [pattern];
|
|
5191
5223
|
}
|
|
5192
5224
|
return braces(pattern, options);
|
|
@@ -5205,6 +5237,8 @@ micromatch$1.braceExpand = (pattern, options) => {
|
|
|
5205
5237
|
* Expose micromatch
|
|
5206
5238
|
*/
|
|
5207
5239
|
|
|
5240
|
+
// exposed for tests
|
|
5241
|
+
micromatch$1.hasBraces = hasBraces;
|
|
5208
5242
|
var micromatch_1 = micromatch$1;
|
|
5209
5243
|
|
|
5210
5244
|
Object.defineProperty(pattern$1, "__esModule", { value: true });
|
|
@@ -7830,7 +7864,7 @@ function read(stream) {
|
|
|
7830
7864
|
});
|
|
7831
7865
|
}
|
|
7832
7866
|
async function readVsix(file) {
|
|
7833
|
-
return new Promise((resolve) => {
|
|
7867
|
+
return await new Promise((resolve) => {
|
|
7834
7868
|
const files = {};
|
|
7835
7869
|
yauzl.open(file, { lazyEntries: true }, (err, zipfile) => {
|
|
7836
7870
|
if (err != null)
|
|
@@ -4,90 +4,6 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
declare module 'vscode' {
|
|
7
|
-
/**
|
|
8
|
-
* Options that apply to AI text search.
|
|
9
|
-
*/
|
|
10
|
-
export interface AITextSearchOptionsNew {
|
|
11
|
-
|
|
12
|
-
folderOptions: {
|
|
13
|
-
/**
|
|
14
|
-
* The root folder to search within.
|
|
15
|
-
*/
|
|
16
|
-
folder: Uri;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Files that match an `includes` glob pattern should be included in the search.
|
|
20
|
-
*/
|
|
21
|
-
includes: string[];
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Files that match an `excludes` glob pattern should be excluded from the search.
|
|
25
|
-
*/
|
|
26
|
-
excludes: GlobPattern[];
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Whether symlinks should be followed while searching.
|
|
30
|
-
* For more info, see the setting description for `search.followSymlinks`.
|
|
31
|
-
*/
|
|
32
|
-
followSymlinks: boolean;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Which file locations we should look for ignore (.gitignore or .ignore) files to respect.
|
|
36
|
-
*/
|
|
37
|
-
useIgnoreFiles: {
|
|
38
|
-
/**
|
|
39
|
-
* Use ignore files at the current workspace root.
|
|
40
|
-
*/
|
|
41
|
-
local: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Use ignore files at the parent directory. If set, {@link TextSearchProviderOptionsNew.useIgnoreFiles.local} should also be `true`.
|
|
44
|
-
*/
|
|
45
|
-
parent: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Use global ignore files. If set, {@link TextSearchProviderOptionsNew.useIgnoreFiles.local} should also be `true`.
|
|
48
|
-
*/
|
|
49
|
-
global: boolean;
|
|
50
|
-
};
|
|
51
|
-
}[];
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The maximum number of results to be returned.
|
|
55
|
-
*/
|
|
56
|
-
maxResults: number;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Options to specify the size of the result text preview.
|
|
60
|
-
*/
|
|
61
|
-
previewOptions: {
|
|
62
|
-
/**
|
|
63
|
-
* The maximum number of lines in the preview.
|
|
64
|
-
* Only search providers that support multiline search will ever return more than one line in the match.
|
|
65
|
-
*/
|
|
66
|
-
matchLines: number;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The maximum number of characters included per line.
|
|
70
|
-
*/
|
|
71
|
-
charsPerLine: number;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Exclude files larger than `maxFileSize` in bytes.
|
|
76
|
-
*/
|
|
77
|
-
maxFileSize: number;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Interpret files using this encoding.
|
|
81
|
-
* See the vscode setting `"files.encoding"`
|
|
82
|
-
*/
|
|
83
|
-
encoding: string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Number of lines of context to include before and after each match.
|
|
87
|
-
*/
|
|
88
|
-
surroundingContext: number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
7
|
/**
|
|
92
8
|
* An AITextSearchProvider provides additional AI text search results in the workspace.
|
|
93
9
|
*/
|
|
@@ -101,7 +17,7 @@ declare module 'vscode' {
|
|
|
101
17
|
* @param progress A progress callback that must be invoked for all results.
|
|
102
18
|
* @param token A cancellation token.
|
|
103
19
|
*/
|
|
104
|
-
provideAITextSearchResults(query: string, options:
|
|
20
|
+
provideAITextSearchResults(query: string, options: TextSearchProviderOptions, progress: Progress<TextSearchResultNew>, token: CancellationToken): ProviderResult<TextSearchCompleteNew>;
|
|
105
21
|
}
|
|
106
22
|
|
|
107
23
|
export namespace workspace {
|
|
@@ -70,7 +70,7 @@ declare module 'vscode' {
|
|
|
70
70
|
constructor(value: Uri, license: string, snippet: string);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseDetectedParticipantPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2;
|
|
73
|
+
export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseDetectedParticipantPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart;
|
|
74
74
|
|
|
75
75
|
export class ChatResponseWarningPart {
|
|
76
76
|
value: MarkdownString;
|
|
@@ -87,7 +87,7 @@ declare module 'vscode' {
|
|
|
87
87
|
/**
|
|
88
88
|
* The reference target.
|
|
89
89
|
*/
|
|
90
|
-
value: Uri | Location | { variableName: string; value?: Uri | Location };
|
|
90
|
+
value: Uri | Location | { variableName: string; value?: Uri | Location } | string;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The icon for the reference.
|
|
@@ -109,7 +109,7 @@ declare module 'vscode' {
|
|
|
109
109
|
* @param value A uri or location
|
|
110
110
|
* @param iconPath Icon for the reference shown in UI
|
|
111
111
|
*/
|
|
112
|
-
constructor(value: Uri | Location | { variableName: string; value?: Uri | Location }, iconPath?: Uri | ThemeIcon | {
|
|
112
|
+
constructor(value: Uri | Location | { variableName: string; value?: Uri | Location } | string, iconPath?: Uri | ThemeIcon | {
|
|
113
113
|
/**
|
|
114
114
|
* The icon path for the light theme.
|
|
115
115
|
*/
|
|
@@ -121,6 +121,14 @@ declare module 'vscode' {
|
|
|
121
121
|
}, options?: { status?: { description: string; kind: ChatResponseReferencePartStatusKind } });
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
export class ChatResponseMovePart {
|
|
125
|
+
|
|
126
|
+
readonly uri: Uri;
|
|
127
|
+
readonly range: Range;
|
|
128
|
+
|
|
129
|
+
constructor(uri: Uri, range: Range);
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
export interface ChatResponseStream {
|
|
125
133
|
|
|
126
134
|
/**
|
|
@@ -161,7 +169,7 @@ declare module 'vscode' {
|
|
|
161
169
|
|
|
162
170
|
reference(value: Uri | Location | { variableName: string; value?: Uri | Location }, iconPath?: Uri | ThemeIcon | { light: Uri; dark: Uri }): void;
|
|
163
171
|
|
|
164
|
-
reference2(value: Uri | Location | { variableName: string; value?: Uri | Location }, iconPath?: Uri | ThemeIcon | { light: Uri; dark: Uri }, options?: { status?: { description: string; kind: ChatResponseReferencePartStatusKind } }): void;
|
|
172
|
+
reference2(value: Uri | Location | string | { variableName: string; value?: Uri | Location }, iconPath?: Uri | ThemeIcon | { light: Uri; dark: Uri }, options?: { status?: { description: string; kind: ChatResponseReferencePartStatusKind } }): void;
|
|
165
173
|
|
|
166
174
|
codeCitation(value: Uri, license: string, snippet: string): void;
|
|
167
175
|
|
|
@@ -188,8 +196,6 @@ declare module 'vscode' {
|
|
|
188
196
|
* The `data` for any confirmations that were rejected
|
|
189
197
|
*/
|
|
190
198
|
rejectedConfirmationData?: any[];
|
|
191
|
-
|
|
192
|
-
requestedTools?: string[];
|
|
193
199
|
}
|
|
194
200
|
|
|
195
201
|
// TODO@API fit this into the stream
|
|
@@ -224,19 +230,36 @@ declare module 'vscode' {
|
|
|
224
230
|
|
|
225
231
|
export type ChatExtendedRequestHandler = (request: ChatRequest, context: ChatContext, response: ChatResponseStream, token: CancellationToken) => ProviderResult<ChatResult | void>;
|
|
226
232
|
|
|
233
|
+
export interface ChatResult {
|
|
234
|
+
nextQuestion?: {
|
|
235
|
+
prompt: string;
|
|
236
|
+
participant?: string;
|
|
237
|
+
command?: string;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
|
|
227
241
|
export namespace chat {
|
|
228
242
|
/**
|
|
229
243
|
* Create a chat participant with the extended progress type
|
|
230
244
|
*/
|
|
231
245
|
export function createChatParticipant(id: string, handler: ChatExtendedRequestHandler): ChatParticipant;
|
|
232
246
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
247
|
+
export function registerChatParticipantDetectionProvider(participantDetectionProvider: ChatParticipantDetectionProvider): Disposable;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface ChatParticipantMetadata {
|
|
251
|
+
participant: string;
|
|
252
|
+
command?: string;
|
|
253
|
+
disambiguation: { categoryName: string; description: string; examples: string[] }[];
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface ChatParticipantDetectionResult {
|
|
257
|
+
participant: string;
|
|
258
|
+
command?: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface ChatParticipantDetectionProvider {
|
|
262
|
+
provideParticipantDetection(chatRequest: ChatRequest, context: ChatContext, options: { participants?: ChatParticipantMetadata[]; location: ChatLocation }, token: CancellationToken): ProviderResult<ChatParticipantDetectionResult>;
|
|
240
263
|
}
|
|
241
264
|
|
|
242
265
|
/*
|
|
@@ -265,6 +288,8 @@ declare module 'vscode' {
|
|
|
265
288
|
codeBlockIndex: number;
|
|
266
289
|
totalCharacters: number;
|
|
267
290
|
newFile?: boolean;
|
|
291
|
+
userAction?: string;
|
|
292
|
+
codeMapper?: string;
|
|
268
293
|
}
|
|
269
294
|
|
|
270
295
|
export interface ChatTerminalAction {
|
|
@@ -307,4 +332,8 @@ declare module 'vscode' {
|
|
|
307
332
|
*/
|
|
308
333
|
readonly name: string;
|
|
309
334
|
}
|
|
335
|
+
|
|
336
|
+
export interface ChatResultFeedback {
|
|
337
|
+
readonly unhelpfulReason?: string;
|
|
338
|
+
}
|
|
310
339
|
}
|
|
@@ -56,6 +56,11 @@ declare module 'vscode' {
|
|
|
56
56
|
*/
|
|
57
57
|
readonly enableCommandDetection: boolean;
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* If the chat participant or command was automatically assigned.
|
|
61
|
+
*/
|
|
62
|
+
readonly isParticipantDetected: boolean;
|
|
63
|
+
|
|
59
64
|
/**
|
|
60
65
|
* The location at which the chat is happening. This will always be one of the supported values
|
|
61
66
|
*
|
|
@@ -12,7 +12,7 @@ declare module 'vscode' {
|
|
|
12
12
|
|
|
13
13
|
export interface ChatResponseFragment2 {
|
|
14
14
|
index: number;
|
|
15
|
-
part: LanguageModelChatResponseTextPart |
|
|
15
|
+
part: LanguageModelChatResponseTextPart | LanguageModelChatResponseToolCallPart;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// @API extension ship a d.ts files for their options
|