ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / extensions / copilot / src / platform / customInstructions / test / node / customInstructionsService.spec.ts 405 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
import { afterEach, beforeEach, expect, suite, test } from 'vitest' ;
import { URI } from '../../../../util/vs/base/common/uri' ;
import { SyncDescriptor } from '../../../../util/vs/platform/instantiation/common/descriptors' ;
import { ConfigKey, IConfigurationService } from '../../../configuration/common/configurationService' ;
import { DefaultsOnlyConfigurationService } from '../../../configuration/common/defaultsOnlyConfigurationService' ;
import { InMemoryConfigurationService } from '../../../configuration/test/common/inMemoryConfigurationService' ;
import { MockFileSystemService
createPlatformServices ITestingServicesAccessor
TestWorkspaceService
IWorkspaceService
ICustomInstructionsService
IFileSystemService
mockFiles
accessor ITestingServicesAccessor
customInstructionsService ICustomInstructionsService
configService InMemoryConfigurationService
fileSystemService MockFileSystemService
services
workspaceFolders
services IWorkspaceService
TestWorkspaceService
workspaceFolders
configService
services IConfigurationService configService
configService
accessor services
customInstructionsService accessor ICustomInstructionsService
fileSystemService accessor IFileSystemService MockFileSystemService
accessor
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillInfo skillName
skillInfo skillFolderUri
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillInfo skillName
skillInfo skillFolderUri
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillInfo skillName
skillInfo skillFolderUri
regularFileUri
skillInfo customInstructionsService regularFileUri
skillInfo
configService
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillInfo skillName
skillFileUri
customInstructionsService skillFileUri
skillFileUri
customInstructionsService skillFileUri
regularFileUri
customInstructionsService regularFileUri
configService
skillFileUri
customInstructionsService skillFileUri
skillFileUri
customInstructionsService skillFileUri
skillMdUri
customInstructionsService skillMdUri
skillMdUri
customInstructionsService skillMdUri
skillMdUri
customInstructionsService skillMdUri
otherMdUri
customInstructionsService otherMdUri
codeFileUri
customInstructionsService codeFileUri
nonSkillUri
customInstructionsService nonSkillUri
configService
skillMdUri
customInstructionsService skillMdUri
skillFileUri
customInstructionsService skillFileUri
regularFileUri
customInstructionsService regularFileUri
skillFolderUri
customInstructionsService skillFolderUri
nestedFolderUri
customInstructionsService nestedFolderUri
regularFolderUri
customInstructionsService regularFolderUri
configService
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillInfo skillName
skillInfo skillFolderUri
configService
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillInfo skillName
skillInfo skillFolderUri
configService
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillInfo skillName
skillInfo skillFolderUri
configService
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
skillInfo skillName
skillInfo skillFolderUri
configService
skillFileUri
skillInfo customInstructionsService skillFileUri
skillInfo
configService
skill1 customInstructionsService
skill1 skillName
skill2 customInstructionsService
skill2 skillName
skill3 customInstructionsService
skill3 skillName
configService
skillFileUri
customInstructionsService skillFileUri
configService
skillMdUri
customInstructionsService skillMdUri
configService
skillFolderUri
customInstructionsService skillFolderUri
configService
defaultSkillFile
skillInfo customInstructionsService defaultSkillFile
skillInfo
skillInfo skillName
configService ConfigKey UseInstructionFiles
fileSystemService
path contents
path contents
customInstructionsService uri uri path
configService ConfigKey UseInstructionFiles
fileSystemService
path contents
customInstructionsService
configService
instructionFileUri
customInstructionsService instructionFileUri
configService
instructionFileUri
customInstructionsService instructionFileUri
configService
regularFileUri
customInstructionsService regularFileUri
configService
instructionFileUri
customInstructionsService instructionFileUri
configService
absoluteFileUri
customInstructionsService absoluteFileUri
tildeFileUri
customInstructionsService tildeFileUri
}
from
'../../../filesystem/node/test/mockFileSystemService'
;
import
{
,
}
from
'../../../test/node/services'
;
import
{
}
from
'../../../test/node/testWorkspaceService'
;
import
{
}
from
'../../../workspace/common/workspaceService'
;
import
{
}
from
'../../common/customInstructionsService'
;
import
{
}
from
'../../../filesystem/common/fileSystemService'
;
import
{
}
from
'../../../promptFiles/test/node/mockFiles'
;
suite
(
'CustomInstructionsService - Skills'
,
(
)
=>
{
let
:
;
let
:
;
let
:
;
let
:
;
beforeEach
(
async
(
)
=>
{
const
=
createPlatformServices
(
)
;
const
=
[
URI
.
file
(
'/workspace'
)
]
;
.
define
(
,
new
SyncDescriptor
(
,
[
,
[
]
]
)
)
;
=
new
InMemoryConfigurationService
(
new
DefaultsOnlyConfigurationService
(
)
)
;
.
define
(
,
)
;
await
.
setNonExtensionConfig
(
'chat.useAgentSkills'
,
true
)
;
=
.
createTestingAccessor
(
)
;
=
.
get
(
)
;
=
.
get
(
)
as
;
}
)
;
afterEach
(
(
)
=>
{
?.
dispose
(
)
;
}
)
;
suite
(
'getSkillInfo'
,
(
)
=>
{
test
(
'should return skill info for file in .github/skills folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'myskill'
)
;
expect
(
?.
.
toString
(
)
)
.
toBe
(
URI
.
file
(
'/workspace/.github/skills/myskill'
)
.
toString
(
)
)
;
}
)
;
test
(
'should return skill info for file in .claude/skills folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.claude/skills/myskill/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'myskill'
)
;
expect
(
?.
.
toString
(
)
)
.
toBe
(
URI
.
file
(
'/workspace/.claude/skills/myskill'
)
.
toString
(
)
)
;
}
)
;
test
(
'should return skill info for nested file in skill folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/subfolder/helper.ts'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'myskill'
)
;
expect
(
?.
.
toString
(
)
)
.
toBe
(
URI
.
file
(
'/workspace/.github/skills/myskill'
)
.
toString
(
)
)
;
}
)
;
test
(
'should return undefined for non-skill file'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/src/file.ts'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeUndefined
(
)
;
}
)
;
test
(
'should return undefined when useAgentSkills setting is disabled'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.useAgentSkills'
,
false
)
;
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeUndefined
(
)
;
}
)
;
test
(
'should return skill info for skill with hyphenated name'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/my-skill-name/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'my-skill-name'
)
;
}
)
;
}
)
;
suite
(
'isSkillFile'
,
(
)
=>
{
test
(
'should return true for file in skill folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/SKILL.md'
)
;
expect
(
.
isSkillFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return true for nested file in skill folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/subfolder/code.ts'
)
;
expect
(
.
isSkillFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return false for non-skill file'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/src/file.ts'
)
;
expect
(
.
isSkillFile
(
)
)
.
toBe
(
false
)
;
}
)
;
test
(
'should return false when useAgentSkills setting is disabled'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.useAgentSkills'
,
false
)
;
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/SKILL.md'
)
;
expect
(
.
isSkillFile
(
)
)
.
toBe
(
false
)
;
}
)
;
test
(
'should return true for file in .claude/skills folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.claude/skills/test/file.ts'
)
;
expect
(
.
isSkillFile
(
)
)
.
toBe
(
true
)
;
}
)
;
}
)
;
suite
(
'isSkillMdFile'
,
(
)
=>
{
test
(
'should return true for SKILL.md in skill folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/SKILL.md'
)
;
expect
(
.
isSkillMdFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return true for skill.md with lowercase'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/skill.md'
)
;
expect
(
.
isSkillMdFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return true for mixed case sKiLl.Md'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/sKiLl.Md'
)
;
expect
(
.
isSkillMdFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return false for other .md files in skill folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/README.md'
)
;
expect
(
.
isSkillMdFile
(
)
)
.
toBe
(
false
)
;
}
)
;
test
(
'should return false for non-md files in skill folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/code.ts'
)
;
expect
(
.
isSkillMdFile
(
)
)
.
toBe
(
false
)
;
}
)
;
test
(
'should return false for SKILL.md outside skill folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/docs/SKILL.md'
)
;
expect
(
.
isSkillMdFile
(
)
)
.
toBe
(
false
)
;
}
)
;
test
(
'should return false when useAgentSkills setting is disabled'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.useAgentSkills'
,
false
)
;
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/SKILL.md'
)
;
expect
(
.
isSkillMdFile
(
)
)
.
toBe
(
false
)
;
}
)
;
}
)
;
suite
(
'isExternalInstructionsFile'
,
(
)
=>
{
test
(
'should return true for skill files'
,
async
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/SKILL.md'
)
;
expect
(
await
.
isExternalInstructionsFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return false for regular files'
,
async
(
)
=>
{
const
=
URI
.
file
(
'/workspace/src/file.ts'
)
;
expect
(
await
.
isExternalInstructionsFile
(
)
)
.
toBe
(
false
)
;
}
)
;
}
)
;
suite
(
'isExternalInstructionsFolder'
,
(
)
=>
{
test
(
'should return true for skill folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill'
)
;
expect
(
.
isExternalInstructionsFolder
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return true for nested folder in skill'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/subfolder'
)
;
expect
(
.
isExternalInstructionsFolder
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return false for regular folder'
,
(
)
=>
{
const
=
URI
.
file
(
'/workspace/src'
)
;
expect
(
.
isExternalInstructionsFolder
(
)
)
.
toBe
(
false
)
;
}
)
;
}
)
;
suite
(
'chat.agentSkillsLocations config'
,
(
)
=>
{
test
(
'should return skill info for file in absolute path skill location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'/custom/skills'
:
true
}
)
;
const
=
URI
.
file
(
'/custom/skills/myskill/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'myskill'
)
;
expect
(
?.
.
toString
(
)
)
.
toBe
(
URI
.
file
(
'/custom/skills/myskill'
)
.
toString
(
)
)
;
}
)
;
test
(
'should return skill info for nested file in absolute path skill location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'/custom/skills'
:
true
}
)
;
const
=
URI
.
file
(
'/custom/skills/myskill/subfolder/code.ts'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'myskill'
)
;
expect
(
?.
.
toString
(
)
)
.
toBe
(
URI
.
file
(
'/custom/skills/myskill'
)
.
toString
(
)
)
;
}
)
;
test
(
'should return skill info for file in tilde path skill location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'~/my-skills'
:
true
}
)
;
const
=
URI
.
file
(
'/home/testuser/my-skills/myskill/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'myskill'
)
;
expect
(
?.
.
toString
(
)
)
.
toBe
(
URI
.
file
(
'/home/testuser/my-skills/myskill'
)
.
toString
(
)
)
;
}
)
;
test
(
'should return skill info for file in relative path skill location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'custom-skills'
:
true
}
)
;
const
=
URI
.
file
(
'/workspace/custom-skills/myskill/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'myskill'
)
;
expect
(
?.
.
toString
(
)
)
.
toBe
(
URI
.
file
(
'/workspace/custom-skills/myskill'
)
.
toString
(
)
)
;
}
)
;
test
(
'should ignore disabled skill locations (value !== true)'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'/custom/skills'
:
false
}
)
;
const
=
URI
.
file
(
'/custom/skills/myskill/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeUndefined
(
)
;
}
)
;
test
(
'should handle multiple skill locations'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'/custom/skills'
:
true
,
'~/my-skills'
:
true
,
'local-skills'
:
true
}
)
;
const
=
.
getSkillInfo
(
URI
.
file
(
'/custom/skills/skill1/SKILL.md'
)
)
;
expect
(
?.
)
.
toBe
(
'skill1'
)
;
const
=
.
getSkillInfo
(
URI
.
file
(
'/home/testuser/my-skills/skill2/SKILL.md'
)
)
;
expect
(
?.
)
.
toBe
(
'skill2'
)
;
const
=
.
getSkillInfo
(
URI
.
file
(
'/workspace/local-skills/skill3/SKILL.md'
)
)
;
expect
(
?.
)
.
toBe
(
'skill3'
)
;
}
)
;
test
(
'should return true for isSkillFile with config-based location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'/custom/skills'
:
true
}
)
;
const
=
URI
.
file
(
'/custom/skills/myskill/code.ts'
)
;
expect
(
.
isSkillFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return true for isSkillMdFile with config-based location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'/custom/skills'
:
true
}
)
;
const
=
URI
.
file
(
'/custom/skills/myskill/SKILL.md'
)
;
expect
(
.
isSkillMdFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should return true for isExternalInstructionsFolder with config-based location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'/custom/skills'
:
true
}
)
;
const
=
URI
.
file
(
'/custom/skills/myskill'
)
;
expect
(
.
isExternalInstructionsFolder
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'config-based locations should not interfere with default locations'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.agentSkillsLocations'
,
{
'/custom/skills'
:
true
}
)
;
const
=
URI
.
file
(
'/workspace/.github/skills/myskill/SKILL.md'
)
;
const
=
.
getSkillInfo
(
)
;
expect
(
)
.
toBeDefined
(
)
;
expect
(
?.
)
.
toBe
(
'myskill'
)
;
}
)
;
}
)
;
suite
(
'chat.instructionsFilesLocations config'
,
(
)
=>
{
test
(
'should return workspace and home copilot instruction files from getAgentInstructions'
,
async
(
)
=>
{
await
.
setConfig
(
.
,
true
)
;
await
mockFiles
(
,
[
{
:
'/workspace/.github/copilot-instructions.md'
,
:
[
'Workspace instructions'
]
}
,
{
:
'/home/testuser/.copilot/copilot-instructions.md'
,
:
[
'Home instructions'
]
}
,
]
)
;
expect
(
(
await
.
getAgentInstructions
(
)
)
.
map
(
=>
.
)
)
.
toEqual
(
[
'/workspace/.github/copilot-instructions.md'
,
'/home/testuser/.copilot/copilot-instructions.md'
,
]
)
;
}
)
;
test
(
'should skip home copilot instruction files from getAgentInstructions when disabled'
,
async
(
)
=>
{
await
.
setConfig
(
.
,
false
)
;
await
mockFiles
(
,
[
{
:
'/home/testuser/.copilot/copilot-instructions.md'
,
:
[
'Home instructions'
]
}
,
]
)
;
expect
(
await
.
getAgentInstructions
(
)
)
.
toEqual
(
[
]
)
;
}
)
;
test
(
'should recognize instruction file in absolute path location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.instructionsFilesLocations'
,
{
'/custom/instructions'
:
true
}
)
;
const
=
URI
.
file
(
'/custom/instructions/setup.instructions.md'
)
;
expect
(
await
.
isExternalInstructionsFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should recognize instruction file in tilde path location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.instructionsFilesLocations'
,
{
'~/.copilot/instructions'
:
true
}
)
;
const
=
URI
.
file
(
'/home/testuser/.copilot/instructions/setup.instructions.md'
)
;
expect
(
await
.
isExternalInstructionsFile
(
)
)
.
toBe
(
true
)
;
}
)
;
test
(
'should not recognize non-instruction file in tilde path location'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.instructionsFilesLocations'
,
{
'~/.copilot/instructions'
:
true
}
)
;
const
=
URI
.
file
(
'/home/testuser/.copilot/instructions/notes.txt'
)
;
expect
(
await
.
isExternalInstructionsFile
(
)
)
.
toBe
(
false
)
;
}
)
;
test
(
'should ignore disabled instruction locations'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.instructionsFilesLocations'
,
{
'/custom/instructions'
:
false
}
)
;
const
=
URI
.
file
(
'/custom/instructions/setup.instructions.md'
)
;
expect
(
await
.
isExternalInstructionsFile
(
)
)
.
toBe
(
false
)
;
}
)
;
test
(
'should handle both absolute and tilde paths together'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.instructionsFilesLocations'
,
{
'/custom/instructions'
:
true
,
'~/.copilot/instructions'
:
true
}
)
;
const
=
URI
.
file
(
'/custom/instructions/setup.instructions.md'
)
;
expect
(
await
.
isExternalInstructionsFile
(
)
)
.
toBe
(
true
)
;
const
=
URI
.
file
(
'/home/testuser/.copilot/instructions/setup.instructions.md'
)
;
expect
(
await
.
isExternalInstructionsFile
(
)
)
.
toBe
(
true
)
;
}
)
;
}
)
;
}
)
;