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
Provide project context and coding guidelines that AI should follow when generating code, answering questions, or reviewing changes.# Coding Instructions for vscode-python-environments
6
+
7
+
## Localization
8
+
9
+
- Localize all user-facing messages using VS Code’s `l10n` API.
10
+
- Internal log messages do not require localization.
11
+
12
+
## Logging
13
+
14
+
- Use the extension’s logging utilities (`traceLog`, `traceVerbose`) for internal logs.
15
+
- Do not use `console.log` or `console.warn` for logging.
16
+
17
+
## Settings Precedence
18
+
19
+
- Always consider VS Code settings precedence:
20
+
1. Workspace folder
21
+
2. Workspace
22
+
3. User/global
23
+
- Remove or update settings from the highest precedence scope first.
24
+
25
+
## Error Handling & User Notifications
26
+
27
+
- Avoid showing the same error message multiple times in a session; track state with a module-level variable.
28
+
- Use clear, actionable error messages and offer relevant buttons (e.g., "Open settings", "Close").
29
+
30
+
## Documentation
31
+
32
+
- Add clear docstrings to public functions, describing their purpose, parameters, and behavior.
0 commit comments