Overview of core VS Code extension API modules
The vscode module provides several key namespaces for extension development:
ExtensionContext: Provides the context for the extension (e.g., storage paths, subscription management).languages: Used to register language services (CodeLens, completions, hover tips) and language features (navigation, document symbols, syntax highlighting).commands: Used to register and handle VS Code commands.Disposable: An interface for managing and releasing resources via thedisposemethod.workspace: Provides access to the workspace, including reading and updating configuration settings.window: Used for interacting with the VS Code window, such as showing information message boxes.
import {
ExtensionContext, languages, commands, Disposable, workspace, window
} from 'vscode';