| applyTo | ** |
|---|
Provide project context and coding guidelines that AI should follow when generating code, answering questions, or reviewing changes.# Coding Instructions for vscode-python-environments
- Localize all user-facing messages using VS Code’s
l10nAPI. - Internal log messages do not require localization.
- Use the extension’s logging utilities (
traceLog,traceVerbose) for internal logs. - Do not use
console.logorconsole.warnfor logging.
- Always consider VS Code settings precedence:
- Workspace folder
- Workspace
- User/global
- Remove or update settings from the highest precedence scope first.
- Avoid showing the same error message multiple times in a session; track state with a module-level variable.
- Use clear, actionable error messages and offer relevant buttons (e.g., "Open settings", "Close").
- Add clear docstrings to public functions, describing their purpose, parameters, and behavior.