Salesforce Apex Language Server (Typescript) installs statistics
By Salesforce (35 listings) · VS Code Marketplace · Programming Languages
VSCode extension for Apex Language Server
Salesforce Apex Language Server (Typescript) has 594,737 recorded installs on VS Code Marketplace, an increase of 4.6% over the past 30 days, ranking #775 of 2,515 tracked listings.
About Salesforce Apex Language Server (Typescript)
Salesforce Apex Language Server Extension
A Visual Studio Code extension providing comprehensive Apex language support powered by a modern TypeScript-based language server.
Features
Core Language Support
- Syntax Highlighting: Full Apex, SOQL, and Anonymous Apex syntax highlighting
- Real-time Diagnostics: Instant error detection and validation as you type
- Code Intelligence: Hover information, go-to-definition, find references, and more
- Document Symbols: Quick navigation through class members and methods
- Code Lens: Browser and desktop CodeLens support for anonymous Apex and Apex test commands
- Folding Ranges: Smart code folding based on structure and comments
- Auto-completion: Context-aware code completion (development mode)
Advanced Features
- Missing Artifact Resolution: Automatically finds and loads referenced types when needed
- Workspace Loading: Batch loading of Apex files for comprehensive cross-file analysis
- Queue-Based Processing: Priority-based request handling for responsive editing
- Performance Profiling: Built-in CPU and heap profiling for performance analysis (desktop only)
Platform Support
- Desktop: Full Node.js-based language server
- Web: Browser-based language server for vscode.dev and github.dev
Installation
- Install from the VS Code Marketplace or Extensions view
- Open a workspace containing Apex files (
.cls,.trigger,.apex) - The language server starts automatically
Extension API
Debugger extensions can consume the activated language-server extension rather
than issue LSP requests themselves. Declare the extension dependency, retrieve
its exported ApexExtensionApi, and call its materialized client:
{
"extensionDependencies": ["salesforce.apex-language-server-extension"]
}
import * as vscode from 'vscode';
import {
hasApexClientCapabilities,
isApexExtensionApi,
} from '@salesforce/apex-language-server-extension-api';
const apexExtension = vscode.extensions.getExtension(
'salesforce.apex-language-server-extension',
);
if (!apexExtension) {
throw new Error('Salesforce Apex Language Server extension is unavailable');
}
const apex = await apexExtension.activate();
if (
!isApexExtensionApi(apex) ||
!hasApexClientCapabilities(apex.client, [
'lineBreakpointInfo',
'exceptionBreakpointInfo',
])
) {
throw new Error('Apex Language Server debugger APIs are unavailable');
}
const uri = 'file:///workspace/force-app/main/default/classes/Example.cls';
const lineBreakpoints = await apex.client.getLineBreakpointInfo(uri);
const exceptionBreakpoints = await apex.client.getExceptionBreakpointInfo(uri);
The activated API is defined by the
@salesforce/apex-language-server-extension-api contract package. Its stable client
facade supports breakpoint metadata, feature-state checks, and standard LSP
hover, completion, definition, document-symbol, and semantic-token requests.
The facade remains valid after the language server restarts; callers do not
receive or manage the concrete runtime client.
The URI must identify a document loaded by the language server. Line results use
1-based source lines and opaque debugger typeref values; exception results add
a display label and optional source URI. Treat typeref as opaque and pass it
through unchanged. The client translates these calls to the language server's
standard command transport, so consumers should not send LSP commands directly.
CodeLens Callback Registration
The extension exposes the host-neutral CodeLensCallbackRegistry<vscode.CodeLens> from
@salesforce/apex-lsp-client through ApexExtensionApi.codeLens. Companion
extensions should register on this activated registry rather than construct a
separate one. This allows browser and desktop hosts to render server-declared
CodeLens anchors while companion extensions supply their own commands.
Register a callback after activating the language-server extension. Callbacks
receive the server anchor and return a lens with their command, or null to
suppress that anchor. Register each server descriptor command ID the companion
extension handles. The extension preserves the server-provided range, so callbacks
own command and presentation details but not CodeLens placement. There is one
callback for each descriptor; a later registration for the same descriptor
replaces the earlier one. Callback failures are logged to the Apex
Language Server output channel and suppress that lens.
import * as vscode from 'vscode';
import type { ApexExtensionApi } from '@salesforce/apex-language-server-extension-api';
const apexExtension = vscode.extensions.getExtension<
ApexExtensionApi<vscode.CodeLens>
>(
'salesforce.apex-language-server-extension',
);
if (!apexExtension) {
throw new Error('Salesforce Apex Language Server extension is unavailable');
}
const apex = await apexExtension.activate();
if (!apex.codeLens) {
throw new Error('Apex Language Server CodeLens API is unavailable');
}
context.subscriptions.push(
apex.codeLens.register('sf.apex.test.method.run.delegate', (anchor) => ({
...anchor,
command: {
command: 'salesforcedx-vscode-apex.runTestMethod',
title: 'Run Test',
arguments: ['ExampleTest.exampleMethod'],
},
})),
);
If no callback is registered for a descriptor, or its callback returns null,
the corresponding server delegate lens is not shown. Providers should use
ApexExtensionApi.codeLens rather than registering language-server command IDs
directly.
Configuration
All settings use the apex.* prefix. Configure in VS Code Settings (UI or JSON).
Quick Start: Recommended Settings
{
"apex.environment.serverMode": "development",
"apex.commentCollection.enableCommentCollection": true,
"apex.performance.documentChangeDebounceMs": 300,
"apex.logLevel": "info"
}
Settings Reference
Server Mode…
Description from the VS Code Marketplace listing.
- AnonymousApex
- apex
- apex-anon
- ApexAnonymous
- SalesforceObjectQueryLanguage
- snippet
- soql
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Programming Languages plugins
All 20 Salesforce Apex Language Server (Typescript) alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=salesforce.apex-language-server-extension. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.