@vscode/chat-lib 0.3.1-21 → 0.3.1-23
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/src/_internal/extension/xtab/common/diffHistoryForPrompt.d.ts +6 -0
- package/dist/src/_internal/extension/xtab/common/diffHistoryForPrompt.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/common/diffHistoryForPrompt.js +75 -0
- package/dist/src/_internal/extension/xtab/common/diffHistoryForPrompt.js.map +1 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts +13020 -362
- package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -1
- package/dist/src/_internal/extension/xtab/common/promptCrafting.js +8 -232
- package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -1
- package/dist/src/_internal/extension/xtab/common/promptCraftingUtils.d.ts +4 -0
- package/dist/src/_internal/extension/xtab/common/promptCraftingUtils.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/common/promptCraftingUtils.js +22 -0
- package/dist/src/_internal/extension/xtab/common/promptCraftingUtils.js.map +1 -0
- package/dist/src/_internal/extension/xtab/common/recentFilesForPrompt.d.ts +41 -0
- package/dist/src/_internal/extension/xtab/common/recentFilesForPrompt.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/common/recentFilesForPrompt.js +375 -0
- package/dist/src/_internal/extension/xtab/common/recentFilesForPrompt.js.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js +4 -2
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +3 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.js +4 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/compactionDataContainer.d.ts +17 -0
- package/dist/src/_internal/platform/endpoint/common/compactionDataContainer.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/compactionDataContainer.js +37 -0
- package/dist/src/_internal/platform/endpoint/common/compactionDataContainer.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js +56 -1
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts +12 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js +14 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditsModelService.d.ts +2 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditsModelService.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditsModelService.js +4 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditsModelService.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/node/inlineEditsModelService.d.ts +9 -2
- package/dist/src/_internal/platform/inlineEdits/node/inlineEditsModelService.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/node/inlineEditsModelService.js +65 -54
- package/dist/src/_internal/platform/inlineEdits/node/inlineEditsModelService.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/fetch.d.ts +4 -2
- package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/fetch.js +9 -0
- package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/networking.d.ts +2 -2
- package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/networking.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/openai.d.ts +11 -0
- package/dist/src/_internal/platform/networking/common/openai.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/openai.js +3 -1
- package/dist/src/_internal/platform/networking/common/openai.js.map +1 -1
- package/dist/src/_internal/util/common/arrays.d.ts +5 -0
- package/dist/src/_internal/util/common/arrays.d.ts.map +1 -1
- package/dist/src/_internal/util/common/arrays.js +10 -0
- package/dist/src/_internal/util/common/arrays.js.map +1 -1
- package/dist/src/_internal/util/common/result.d.ts +34 -10
- package/dist/src/_internal/util/common/result.d.ts.map +1 -1
- package/dist/src/_internal/util/common/result.js +91 -2
- package/dist/src/_internal/util/common/result.js.map +1 -1
- package/dist/src/package.json +52 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrays.js","sourceRoot":"","sources":["../../../../../src/_internal/util/common/arrays.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAKhG,sBAQC;AAED,0EAaC;AAOD,kBAgBC;AAED,8BASC;AAKD,kBAUC;
|
|
1
|
+
{"version":3,"file":"arrays.js","sourceRoot":"","sources":["../../../../../src/_internal/util/common/arrays.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAKhG,sBAQC;AAED,0EAaC;AAOD,kBAgBC;AAED,8BASC;AAKD,kBAUC;AAMD,gDAIC;AArFD;;GAEG;AACH,SAAgB,KAAK,CAAI,KAAU,EAAE,SAAgC;IACpE,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;QAC3B,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACtB,KAAK,EAAE,CAAC;QACT,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AAED,SAAgB,+BAA+B,CAAI,KAAU,EAAE,KAAQ,EAAE,gBAAyC;IACjH,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,IAAI,IAAI,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AAO,MAAM,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAgB,GAAG,CAAC,KAAe;IAClC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,GAAG,CAAC;AACZ,CAAC;AAED;;;GAGG;AACH,QAAe,CAAC,CAAC,kBAAkB,CAAI,KAAU,EAAE,SAAiB;IACnE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC;QAClD,MAAM,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC;IACrC,CAAC;AACF,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export type Result<T,
|
|
1
|
+
export type Result<T, E> = ResultOk<T> | ResultError<E>;
|
|
2
2
|
export declare namespace Result {
|
|
3
3
|
function ok<T>(value: T): ResultOk<T>;
|
|
4
|
-
function error<
|
|
4
|
+
function error<E>(value: E): ResultError<E>;
|
|
5
5
|
function fromString(errorMessage: string): ResultError<Error>;
|
|
6
|
+
function tryWith<T>(f: () => T): Result<T, Error>;
|
|
7
|
+
function tryWithAsync<T>(f: () => Promise<T>): Promise<Result<T, Error>>;
|
|
6
8
|
}
|
|
7
9
|
/**
|
|
8
10
|
* To instantiate a ResultOk, use `Result.ok(value)`.
|
|
@@ -11,8 +13,20 @@ export declare namespace Result {
|
|
|
11
13
|
declare class ResultOk<T> {
|
|
12
14
|
readonly val: T;
|
|
13
15
|
constructor(val: T);
|
|
14
|
-
map<
|
|
15
|
-
|
|
16
|
+
map<U>(f: (value: T) => U): ResultOk<U>;
|
|
17
|
+
mapError<E2>(_f: (error: never) => E2): ResultOk<T>;
|
|
18
|
+
flatMap<U, E2>(f: (value: T) => Result<U, E2>): Result<U, E2>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the contained ok value.
|
|
21
|
+
* @throws if this is an error (which is impossible for `ResultOk`,
|
|
22
|
+
* but provided for use on the `Result<T, E>` union type).
|
|
23
|
+
*/
|
|
24
|
+
unwrap(): T;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the contained ok value, or the provided default if this
|
|
27
|
+
* is an error.
|
|
28
|
+
*/
|
|
29
|
+
unwrapOr(_defaultValue: T): T;
|
|
16
30
|
isOk(): this is ResultOk<T>;
|
|
17
31
|
isError(): this is ResultError<never>;
|
|
18
32
|
}
|
|
@@ -20,13 +34,23 @@ declare class ResultOk<T> {
|
|
|
20
34
|
* To instantiate a ResultOk, use `Result.ok(value)`.
|
|
21
35
|
* To instantiate a ResultError, use `Result.error(value)`.
|
|
22
36
|
*/
|
|
23
|
-
declare class ResultError<
|
|
24
|
-
readonly err:
|
|
25
|
-
constructor(err:
|
|
26
|
-
map(
|
|
27
|
-
|
|
37
|
+
declare class ResultError<E> {
|
|
38
|
+
readonly err: E;
|
|
39
|
+
constructor(err: E);
|
|
40
|
+
map<U>(_f: (value: never) => U): ResultError<E>;
|
|
41
|
+
mapError<E2>(f: (error: E) => E2): ResultError<E2>;
|
|
42
|
+
flatMap<U, E2>(_f: (value: never) => Result<U, E2>): ResultError<E>;
|
|
43
|
+
/**
|
|
44
|
+
* Always throws since this is an error result.
|
|
45
|
+
* @throws The contained error value (wrapped in Error if not already one).
|
|
46
|
+
*/
|
|
47
|
+
unwrap(): never;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the provided default value since this is an error.
|
|
50
|
+
*/
|
|
51
|
+
unwrapOr<T>(defaultValue: T): T;
|
|
28
52
|
isOk(): this is ResultOk<never>;
|
|
29
|
-
isError(): this is ResultError<
|
|
53
|
+
isError(): this is ResultError<E>;
|
|
30
54
|
}
|
|
31
55
|
export {};
|
|
32
56
|
//# sourceMappingURL=result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/util/common/result.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/util/common/result.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAExD,yBAAiB,MAAM,CAAC;IAEvB,SAAgB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAE3C;IAED,SAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAEjD;IAED,SAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,CAEnE;IAED,SAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAMvD;IAED,SAAsB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAMpF;CACD;AAED;;;GAGG;AACH,cAAM,QAAQ,CAAC,CAAC;IACH,QAAQ,CAAC,GAAG,EAAE,CAAC;gBAAN,GAAG,EAAE,CAAC;IAE3B,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,C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3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
6
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
40
|
exports.Result = void 0;
|
|
41
|
+
const errors = __importStar(require("./errors"));
|
|
8
42
|
var Result;
|
|
9
43
|
(function (Result) {
|
|
10
44
|
function ok(value) {
|
|
@@ -19,6 +53,24 @@ var Result;
|
|
|
19
53
|
return Result.error(new Error(errorMessage));
|
|
20
54
|
}
|
|
21
55
|
Result.fromString = fromString;
|
|
56
|
+
function tryWith(f) {
|
|
57
|
+
try {
|
|
58
|
+
return Result.ok(f());
|
|
59
|
+
}
|
|
60
|
+
catch (err) {
|
|
61
|
+
return Result.error(errors.fromUnknown(err));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
Result.tryWith = tryWith;
|
|
65
|
+
async function tryWithAsync(f) {
|
|
66
|
+
try {
|
|
67
|
+
return Result.ok(await f());
|
|
68
|
+
}
|
|
69
|
+
catch (err) {
|
|
70
|
+
return Result.error(errors.fromUnknown(err));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
Result.tryWithAsync = tryWithAsync;
|
|
22
74
|
})(Result || (exports.Result = Result = {}));
|
|
23
75
|
/**
|
|
24
76
|
* To instantiate a ResultOk, use `Result.ok(value)`.
|
|
@@ -31,9 +83,27 @@ class ResultOk {
|
|
|
31
83
|
map(f) {
|
|
32
84
|
return new ResultOk(f(this.val));
|
|
33
85
|
}
|
|
86
|
+
mapError(_f) {
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
34
89
|
flatMap(f) {
|
|
35
90
|
return f(this.val);
|
|
36
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Returns the contained ok value.
|
|
94
|
+
* @throws if this is an error (which is impossible for `ResultOk`,
|
|
95
|
+
* but provided for use on the `Result<T, E>` union type).
|
|
96
|
+
*/
|
|
97
|
+
unwrap() {
|
|
98
|
+
return this.val;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Returns the contained ok value, or the provided default if this
|
|
102
|
+
* is an error.
|
|
103
|
+
*/
|
|
104
|
+
unwrapOr(_defaultValue) {
|
|
105
|
+
return this.val;
|
|
106
|
+
}
|
|
37
107
|
isOk() {
|
|
38
108
|
return true;
|
|
39
109
|
}
|
|
@@ -49,12 +119,31 @@ class ResultError {
|
|
|
49
119
|
constructor(err) {
|
|
50
120
|
this.err = err;
|
|
51
121
|
}
|
|
52
|
-
map(
|
|
122
|
+
map(_f) {
|
|
53
123
|
return this;
|
|
54
124
|
}
|
|
55
|
-
|
|
125
|
+
mapError(f) {
|
|
126
|
+
return new ResultError(f(this.err));
|
|
127
|
+
}
|
|
128
|
+
flatMap(_f) {
|
|
56
129
|
return this;
|
|
57
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Always throws since this is an error result.
|
|
133
|
+
* @throws The contained error value (wrapped in Error if not already one).
|
|
134
|
+
*/
|
|
135
|
+
unwrap() {
|
|
136
|
+
if (this.err instanceof Error) {
|
|
137
|
+
throw this.err;
|
|
138
|
+
}
|
|
139
|
+
throw errors.fromUnknown(this.err);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Returns the provided default value since this is an error.
|
|
143
|
+
*/
|
|
144
|
+
unwrapOr(defaultValue) {
|
|
145
|
+
return defaultValue;
|
|
146
|
+
}
|
|
58
147
|
isOk() {
|
|
59
148
|
return false;
|
|
60
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.js","sourceRoot":"","sources":["../../../../../src/_internal/util/common/result.ts"],"names":[],"mappings":";AAAA;;;gGAGgG
|
|
1
|
+
{"version":3,"file":"result.js","sourceRoot":"","sources":["../../../../../src/_internal/util/common/result.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhG,iDAAmC;AAInC,IAAiB,MAAM,CA6BtB;AA7BD,WAAiB,MAAM;IAEtB,SAAgB,EAAE,CAAI,KAAQ;QAC7B,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAFe,SAAE,KAEjB,CAAA;IA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AAC,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,MAAM;QACL,OAAO,IAAI,CAAC,GAAG,CAAC;IACjB,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,aAAgB;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC;IACjB,CAAC;IAED,IAAI;QACH,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO;QACN,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AAED;;;GAGG;AACH,MAAM,WAAW;IAChB,YACiB,GAAM;QAAN,QAAG,GAAH,GAAG,CAAG;IACnB,CAAC;IAEL,GAAG,CAAI,EAAuB;QAC7B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,QAAQ,CAAK,CAAmB;QAC/B,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,CAAQ,EAAmC;QACjD,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;OAGG;IACH,MAAM;QACL,IAAI,IAAI,CAAC,GAAG,YAAY,KAAK,EAAE,CAAC;YAC/B,MAAM,IAAI,CAAC,GAAG,CAAC;QAChB,CAAC;QACD,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,QAAQ,CAAI,YAAe;QAC1B,OAAO,YAAY,CAAC;IACrB,CAAC;IAED,IAAI;QACH,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO;QACN,OAAO,IAAI,CAAC;IACb,CAAC;CACD"}
|
package/dist/src/package.json
CHANGED
|
@@ -1815,6 +1815,10 @@
|
|
|
1815
1815
|
"vendor": "copilot",
|
|
1816
1816
|
"displayName": "Copilot"
|
|
1817
1817
|
},
|
|
1818
|
+
{
|
|
1819
|
+
"vendor": "copilotcli",
|
|
1820
|
+
"displayName": "Copilot CLI"
|
|
1821
|
+
},
|
|
1818
1822
|
{
|
|
1819
1823
|
"vendor": "anthropic",
|
|
1820
1824
|
"displayName": "Anthropic",
|
|
@@ -2240,6 +2244,12 @@
|
|
|
2240
2244
|
"icon": "$(terminal)",
|
|
2241
2245
|
"category": "Copilot CLI"
|
|
2242
2246
|
},
|
|
2247
|
+
{
|
|
2248
|
+
"command": "github.copilot.cli.sessions.rename",
|
|
2249
|
+
"title": "%github.copilot.command.cli.sessions.rename%",
|
|
2250
|
+
"icon": "$(edit)",
|
|
2251
|
+
"category": "Copilot CLI"
|
|
2252
|
+
},
|
|
2243
2253
|
{
|
|
2244
2254
|
"command": "github.copilot.cli.sessions.openRepository",
|
|
2245
2255
|
"title": "%github.copilot.command.cli.sessions.openRepository%",
|
|
@@ -2496,6 +2506,16 @@
|
|
|
2496
2506
|
"icon": "$(inspect)",
|
|
2497
2507
|
"category": "Developer"
|
|
2498
2508
|
},
|
|
2509
|
+
{
|
|
2510
|
+
"command": "github.copilot.chat.tools.memory.showMemories",
|
|
2511
|
+
"title": "%github.copilot.command.showMemories%",
|
|
2512
|
+
"category": "Chat"
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
"command": "github.copilot.chat.tools.memory.clearMemories",
|
|
2516
|
+
"title": "%github.copilot.command.clearMemories%",
|
|
2517
|
+
"category": "Chat"
|
|
2518
|
+
},
|
|
2499
2519
|
{
|
|
2500
2520
|
"command": "github.copilot.terminal.explainTerminalLastCommand",
|
|
2501
2521
|
"title": "%github.copilot.command.explainTerminalLastCommand%",
|
|
@@ -3188,7 +3208,7 @@
|
|
|
3188
3208
|
},
|
|
3189
3209
|
"github.copilot.chat.tools.memory.enabled": {
|
|
3190
3210
|
"type": "boolean",
|
|
3191
|
-
"default":
|
|
3211
|
+
"default": true,
|
|
3192
3212
|
"markdownDescription": "%github.copilot.config.tools.memory.enabled%",
|
|
3193
3213
|
"tags": [
|
|
3194
3214
|
"preview"
|
|
@@ -3774,6 +3794,15 @@
|
|
|
3774
3794
|
"detailed"
|
|
3775
3795
|
]
|
|
3776
3796
|
},
|
|
3797
|
+
"github.copilot.chat.responsesApiContextManagement.enabled": {
|
|
3798
|
+
"type": "boolean",
|
|
3799
|
+
"default": true,
|
|
3800
|
+
"markdownDescription": "%github.copilot.config.responsesApiContextManagement.enabled%",
|
|
3801
|
+
"tags": [
|
|
3802
|
+
"experimental",
|
|
3803
|
+
"onExp"
|
|
3804
|
+
]
|
|
3805
|
+
},
|
|
3777
3806
|
"github.copilot.chat.anthropic.tools.websearch.enabled": {
|
|
3778
3807
|
"type": "boolean",
|
|
3779
3808
|
"default": false,
|
|
@@ -4903,6 +4932,10 @@
|
|
|
4903
4932
|
"command": "github.copilot.cli.sessions.resumeInTerminal",
|
|
4904
4933
|
"when": "false"
|
|
4905
4934
|
},
|
|
4935
|
+
{
|
|
4936
|
+
"command": "github.copilot.cli.sessions.rename",
|
|
4937
|
+
"when": "false"
|
|
4938
|
+
},
|
|
4906
4939
|
{
|
|
4907
4940
|
"command": "github.copilot.cli.sessions.openRepository",
|
|
4908
4941
|
"when": "false"
|
|
@@ -4954,6 +4987,14 @@
|
|
|
4954
4987
|
{
|
|
4955
4988
|
"command": "github.copilot.nes.captureExpected.submit",
|
|
4956
4989
|
"when": "github.copilot.inlineEditsEnabled"
|
|
4990
|
+
},
|
|
4991
|
+
{
|
|
4992
|
+
"command": "github.copilot.chat.tools.memory.showMemories",
|
|
4993
|
+
"when": "config.github.copilot.chat.tools.memory.enabled"
|
|
4994
|
+
},
|
|
4995
|
+
{
|
|
4996
|
+
"command": "github.copilot.chat.tools.memory.clearMemories",
|
|
4997
|
+
"when": "config.github.copilot.chat.tools.memory.enabled"
|
|
4957
4998
|
}
|
|
4958
4999
|
],
|
|
4959
5000
|
"view/title": [
|
|
@@ -5263,6 +5304,11 @@
|
|
|
5263
5304
|
"when": "chatSessionType == copilotcli",
|
|
5264
5305
|
"group": "1_edit@10"
|
|
5265
5306
|
},
|
|
5307
|
+
{
|
|
5308
|
+
"command": "github.copilot.cli.sessions.rename",
|
|
5309
|
+
"when": "chatSessionType == copilotcli",
|
|
5310
|
+
"group": "1_edit@4"
|
|
5311
|
+
},
|
|
5266
5312
|
{
|
|
5267
5313
|
"command": "github.copilot.cli.sessions.openWorktreeInNewWindow",
|
|
5268
5314
|
"when": "chatSessionType == copilotcli",
|
|
@@ -5719,7 +5765,8 @@
|
|
|
5719
5765
|
"supportsImageAttachments": true,
|
|
5720
5766
|
"supportsSymbolAttachments": true,
|
|
5721
5767
|
"supportsSearchResultAttachments": true,
|
|
5722
|
-
"supportsSourceControlAttachments": true
|
|
5768
|
+
"supportsSourceControlAttachments": true,
|
|
5769
|
+
"supportsPromptAttachments": true
|
|
5723
5770
|
},
|
|
5724
5771
|
"commands": [
|
|
5725
5772
|
{
|
|
@@ -5728,7 +5775,8 @@
|
|
|
5728
5775
|
"when": "config.github.copilot.chat.cloudAgent.enabled"
|
|
5729
5776
|
}
|
|
5730
5777
|
],
|
|
5731
|
-
"customAgentTarget": "github-copilot"
|
|
5778
|
+
"customAgentTarget": "github-copilot",
|
|
5779
|
+
"requiresCustomModels": true
|
|
5732
5780
|
},
|
|
5733
5781
|
{
|
|
5734
5782
|
"type": "copilot-cloud-agent",
|
|
@@ -5996,4 +6044,4 @@
|
|
|
5996
6044
|
"node-gyp": "npm:node-gyp@10.3.1",
|
|
5997
6045
|
"zod": "3.25.76"
|
|
5998
6046
|
}
|
|
5999
|
-
}
|
|
6047
|
+
}
|