Skip to main content

paths

Prefer vscode-uri over node:path. Use when .ts files in /src import node:path or use path.join/basename/dirname/resolve, URI.file, or memfs paths.

Source facts

Repository
forcedotcom/apex-language-support
Last source activity
August 4, 2026 at 20:31
Detected SKILL.md language
English
Stars
11
Forks
3

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
paths
description
Prefer vscode-uri over node:path. Use when .ts files in /src import node:path or use path.join/basename/dirname/resolve, URI.file, or memfs paths.
review
always
# Paths Scope: .ts files in /src - prefer vscode-uri URIs over paths (file, memfs; cross-platform; FsService/workspace.fs accept URIs) - `Utils` from vscode-uri instead of node:path: - `Utils.joinPath(baseUri, 'a', 'b')` — path.join - `Utils.basename(uri)`, `Utils.dirname(uri)`, `Utils.extname(uri)` — path.\* - `Utils.resolvePath(baseUri, 'rel')` — path.resolve - URI↔path via FsService: `toUri(filePath)` / `uriToPath(uri)` (Effect; extensions with salesforcedx-vscode-services) - raw path→URI: `URI.file(path)`, or `toUri` for memfs in web - FsService setup: [services-extension-consumption](../services-extension-consumption/SKILL.md) - exit hatch: build scripts, esbuild configs, tests, desktop-only extension, host-FS-only tooling → node:path ok
View on GitHub