Skip to content

Opt out of IntelliSense-ready deferral for the Python profiling session editor - #8583

Merged
Rich Chiodo (rchiodo) merged 1 commit into
microsoft:mainfrom
davkean:dev/davkean/editor-factories-opt-out-defer
Jul 22, 2026
Merged

Opt out of IntelliSense-ready deferral for the Python profiling session editor#8583
Rich Chiodo (rchiodo) merged 1 commit into
microsoft:mainfrom
davkean:dev/davkean/editor-factories-opt-out-defer

Conversation

@davkean

Copy link
Copy Markdown
Member

The .pyperf profiling session editor doesn't use CodeModel, so it has no reason to wait for IntelliSense before opening. Switching from ProvideEditorExtension to ProvideEditorExtension2 adds DeferUntilIntellisenseIsReady=dword:00000000 under the Editors{factory} key, opting the editor out of the deferral so it opens immediately.

With the arguments used here the two attributes produce identical registration; the only difference is that added value. The code paths where they diverge (params extensions, template-dir escaping, linked-editor GUID, common view attributes) aren't exercised.

Cowritten with Copilot (Claude Opus 4.8)

…on editor

The .pyperf profiling session editor doesn't use CodeModel, so it has no reason to wait for IntelliSense before opening. Switching from ProvideEditorExtension to ProvideEditorExtension2 adds DeferUntilIntellisenseIsReady=dword:00000000 under the Editors\{factory} key, opting the editor out of the deferral so it opens immediately.

With the arguments used here the two attributes produce identical registration; the only difference is that added value. The code paths where they diverge (params extensions, template-dir escaping, linked-editor GUID, common view attributes) aren't exercised.

*Cowritten with Copilot (Claude Opus 4.8)*
Copilot AI review requested due to automatic review settings July 22, 2026 05:36
@davkean
David Kean (davkean) requested a review from a team as a code owner July 22, 2026 05:36
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@sonarqubecloud

Copy link
Copy Markdown

@heejaechang

Copy link
Copy Markdown

🔒 Automated review in progress — Heejae Chang (@heejaechang) is auto-reviewing this PR.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the Python profiling session editor registration so .pyperf files open immediately instead of waiting for IntelliSense readiness, aligning with the fact that the profiling session editor does not rely on CodeModel.

Changes:

  • Swaps the package registration attribute from ProvideEditorExtension to ProvideEditorExtension2 for the .pyperf editor factory.
  • Opts the editor out of IntelliSense-ready deferral by ensuring DeferUntilIntellisenseIsReady=0 is written under the editor’s registry key during registration.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved via Review Center.

@davkean

Copy link
Copy Markdown
Member Author

Heejae Chang (@heejaechang) Would you be able to merge this on completion, I don't have permissions.

@davkean

Copy link
Copy Markdown
Member Author

Heejae Chang (@heejaechang) Actually, the thing is blocked because I don't have permissions to run the build.

@rchiodo

Copy link
Copy Markdown
Contributor

/azp run

@rchiodo
Rich Chiodo (rchiodo) enabled auto-merge (squash) July 22, 2026 16:36
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@rchiodo
Rich Chiodo (rchiodo) merged commit ffe4db9 into microsoft:main Jul 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants