Skip to content

Improvement: nonNull calls with better debugging information#236

Merged
tnaum-ms merged 7 commits into
nextfrom
dev/tnaum/better-nonnullvalue-calls
Aug 25, 2025
Merged

Improvement: nonNull calls with better debugging information#236
tnaum-ms merged 7 commits into
nextfrom
dev/tnaum/better-nonnullvalue-calls

Conversation

@tnaum-ms
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings August 25, 2025 13:22
@tnaum-ms tnaum-ms added this to the 0.4.0 "August 2025" milestone Aug 25, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances debugging capabilities by replacing usage of nonNullValue and related functions from @microsoft/vscode-azext-utils with local implementations that include better debugging information. The key improvement is adding file context to error messages to help with triage when null/undefined values are encountered.

  • Updates all existing nonNull* function calls to include required message and details parameters
  • Adds ESLint rule to prevent future usage of external nonNull helpers
  • Updates documentation with guidelines for using the enhanced debugging features

Reviewed Changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/utils/nonNull.ts Enhanced nonNull helper functions with required debugging parameters
eslint.config.mjs Added ESLint rule to prevent importing nonNull helpers from external library
.github/copilot-instructions.md Added comprehensive documentation for nonNull helper usage guidelines
extension.bundle.ts Added ESLint disable comment for intentional re-export
Multiple source files Updated all nonNull function calls to include debugging context

@tnaum-ms tnaum-ms self-assigned this Aug 25, 2025
@tnaum-ms tnaum-ms added the enhancement New feature or request label Aug 25, 2025
@tnaum-ms tnaum-ms merged commit 6fd4702 into next Aug 25, 2025
8 checks passed
@tnaum-ms tnaum-ms deleted the dev/tnaum/better-nonnullvalue-calls branch August 25, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

2 participants