Skip to content

[W-21836474] fix(soql): .soql files are automatically detected as language SOQL, not Apex#7117

Merged
daphne-sfdc merged 3 commits intodevelopfrom
daphne/W-21836474-windows-soql-code-lens-3
Apr 1, 2026
Merged

[W-21836474] fix(soql): .soql files are automatically detected as language SOQL, not Apex#7117
daphne-sfdc merged 3 commits intodevelopfrom
daphne/W-21836474-windows-soql-code-lens-3

Conversation

@daphne-sfdc
Copy link
Copy Markdown
Contributor

@daphne-sfdc daphne-sfdc commented Apr 1, 2026

What does this PR do?

In the Apex extension's package.json, we had this:

"languages": [
      {
        "id": "apex",
        "aliases": [
          "Apex",
          "apex"
        ],
        "extensions": [
          ".cls",
          ".trigger",
          ".soql"
        ],

And in the SOQL extension's **package.json, we had this:

    "languages": [
      {
        "id": "soql",
        "aliases": [
          "soql",
          "SOQL"
        ],
        "extensions": [
          ".soql"
        ]
      }
    ],

This meant .soql files can be claimed as either language Apex or language SOQL, depending on which extension is activated first. In Windows, the Apex extension is activated before the SOQL extension, so .soql files are incorrectly claimed as language Apex.

As you can see, .soql files with language Apex do not have the "Run Query" and "Get Query Plan" code lens.
Screenshot 2026-04-01 at 1 30 23 AM

What issues does this PR fix or reference?

@W-21836474@

@daphne-sfdc daphne-sfdc requested a review from a team as a code owner April 1, 2026 05:33
…opened, even if it is tagged as language Apex"

This reverts commit fcb6c23.
@daphne-sfdc
Copy link
Copy Markdown
Contributor Author

@peternhale Changes in the SOQL extension reverted, since for future installs the Apex extension will no longer claim .soql files, leaving them for the SOQL extension.

@daphne-sfdc daphne-sfdc changed the title [W-21836474] fix(soql): .soql are automatically detected as language SOQL, not Apex [W-21836474] fix(soql): .soql files are automatically detected as language SOQL, not Apex Apr 1, 2026
@daphne-sfdc daphne-sfdc merged commit 7213006 into develop Apr 1, 2026
61 of 68 checks passed
@daphne-sfdc daphne-sfdc deleted the daphne/W-21836474-windows-soql-code-lens-3 branch April 1, 2026 15:35
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.

2 participants