We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 902e615 commit e79890eCopy full SHA for e79890e
packages/core/src/codewhispererChat/controllers/chat/telemetryHelper.ts
@@ -2,6 +2,7 @@
2
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
+import * as path from 'path'
6
import { UserIntent } from '@amzn/codewhisperer-streaming'
7
import {
8
AmazonqAddMessage,
@@ -147,7 +148,7 @@ export class CWCTelemetryHelper {
147
148
}
149
150
public getContextType(prompt: AdditionalContextPrompt): string {
- if (prompt.relativePath.startsWith('.amazonq/rules')) {
151
+ if (prompt.relativePath.startsWith(path.join('.amazonq', 'rules'))) {
152
return 'rule'
153
} else if (prompt.filePath.startsWith(getUserPromptsDirectory())) {
154
return 'prompt'
0 commit comments