import * as vscode from 'vscode'; export function activate(context: vscode.ExtensionContext) { const configWatcher = vscode.workspace.onDidChangeConfiguration((event) => { if (event.affectsConfiguration('server.config')) { // update server configuration } }); context.subscriptions.push(configWatcher); }In this example, we are using the `onDidChangeConfiguration` method to create a listener that checks whether the `server.config` configuration property has been changed. If it has, we update the server configuration accordingly. We then push this listener onto the context's `subscriptions` array to ensure that it is properly disposed of when the extension is deactivated. The package library for this TypeScript VS Code workspace onDidChangeConfiguration library is `vscode`. This library is built into the VS Code editor and provides a range of functionality for building extensions.