import * as vscode from 'vscode'; // get workspace configuration const config = vscode.workspace.getConfiguration('myExtension'); const isEnabled = config.get('isEnabled'); console.log('isEnabled:', isEnabled);
import * as vscode from 'vscode'; // get user configuration const config = vscode.workspace.getConfiguration(); const fontSize = config.get('editor.fontSize'); console.log('fontSize:', fontSize);This example shows how to retrieve the configuration data for the entire user. The `fontSize` property of the `editor` settings is retrieved and logged to the console. Package/library: `vscode`