php - How can I make ${extensionPath} work in Vscode
Get the solution ↓↓↓Answer
Solution:
I am not sure if extentionPath is a resarved word in setting.json. I also asume that its for your own extention you implement, if so then i recommand you use the Methodvscode.workspace.getConfiguration(...)
it will return the Configuration value from your setting.json. and if you want to update it just use the Method update(context.extentionPath). You can find it in this Link . Also a sample code:
export function activate(context: vscode.ExtensionContext) {
const workbenchConfig = vscode.workspace.getConfiguration('workbench')
const toEdit = workbenchConfig.get('your_config')
toEdit.update(context.extentionPath); // or the Path you specify
}
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: attempt to read property "id" on null
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.