You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
- `setContext` is not supported in Cloud9, so `CODEWHISPERER_ENABLED` is always
false in package.json.
- Parentheses can't be used for logical grouping in the "when" clause (confirmed
on the latest Cloud9, which uses vscode 1.68 extension host).
Solution:
- Check for `isCloud9` and other flags a workaround.
- Use redundant logic to workaround the lack of parentheses support.
Copy file name to clipboardExpand all lines: src/codewhisperer/commands/invokeRecommendation.ts
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,12 @@ export async function invokeRecommendation(
57
57
}
58
58
59
59
if(isCloud9('any')){
60
+
// C9 manual trigger key alt/option + C is ALWAYS enabled because the VSC version C9 is on doesn't support setContextKey which is used for CODEWHISPERER_ENABLED
61
+
// therefore we need a connection check if there is ANY connection(regardless of the connection's state) connected to CodeWhisperer on C9
0 commit comments