Skip to content

Commit 68bf625

Browse files
committed
update prompt
1 parent 2b73262 commit 68bf625

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Extension/src/LanguageServer/lmTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ export class CppConfigurationLanguageModelTool implements vscode.LanguageModelTo
236236
telemetryProperties["targetArchitecture"] = chatContext.targetArchitecture;
237237
}
238238
if (chatContext.usedTestFrameworks?.length > 0) {
239-
contextString += `The active document contains the content of the file '${currentDoc.fileName}' which is located in a directory structure where other files are including headers for the following C++ test frameworks: ${chatContext.usedTestFrameworks.join(', ')} . `;
240-
telemetryProperties["testFrameworks"] = chatContext.usedTestFrameworks.join(',');
239+
contextString += `The project uses the following C++ test frameworks: ${chatContext.usedTestFrameworks.join(', ')}. `;
240+
telemetryProperties["testFrameworks"] = chatContext.usedTestFrameworks.join(', ');
241241
}
242242
return contextString;
243243
}

Extension/test/scenarios/SingleRootProject/tests/lmTool.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ describe('CppConfigurationLanguageModelTool Tests', () => {
168168
"standardVersion": 'C++20',
169169
"targetPlatform": 'Windows',
170170
"targetArchitecture": 'x64',
171-
'testFrameworks': 'gtest,catch2'
171+
'testFrameworks': 'gtest, catch2'
172172
})));
173173
ok(result, 'result should not be undefined');
174174
const text = result.content[0] as vscode.LanguageModelTextPart;
175175
ok(text, 'result should contain a text part');
176-
const traits_text = `The user is working on a C++ project. The project uses language version C++20. The project compiles using the MSVC compiler. The project targets the Windows platform. The project targets the x64 architecture. The active document contains the content of the file 'undefined' which is located in a directory structure where other files are including headers for the following C++ test frameworks: gtest, catch2 . `;
176+
const traits_text = `The user is working on a C++ project. The project uses language version C++20. The project compiles using the MSVC compiler. The project targets the Windows platform. The project targets the x64 architecture. The project uses the following C++ test frameworks: gtest, catch2. `;
177177
ok(text.value === traits_text);
178178
});
179179

0 commit comments

Comments
 (0)