I am currently developing a custom Visual Studio Code extension and I am looking to implement configuration settings for users to personalize the extension according to their preferences. https://i.sstatic.net/6Qkak.png
Initially, I have included these lines in my package.json
:
"contributes": {
"configuration": {
"title": "Custom Title"
},
...
Furthermore, in the extension.ts
, I have added:
const path = context.extensionPath;
let config = vscode.workspace.getConfiguration('myExtensionName');
config.get('mySetting', path);
However, despite following the suggestions in the Visual Studio Documentation, I am encountering issues with this setup. The documentation only mentions using the following code snippet to access configuration settings: You can read these values from your extension using
vscode.workspace.getConfiguration('myExtension')
Any help or advice on this matter would be greatly appreciated.