diff --git a/client/src/extension.ts b/client/src/extension.ts index 8bd5ea3cd..0cac6b870 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -66,7 +66,7 @@ function updatePythonPath (): void { for (const pythonSubConf of ['autoComplete.extraPaths', 'analysis.extraPaths']) { const extraPaths = pythonConfig.get(pythonSubConf) ?? [] for (const pathToAdd of [pathToBitbakeLib, pathToPokyMetaLib]) { - if (!extraPaths.includes(pathToAdd)) { + if (!extraPaths.includes(pathToAdd) && Object.isExtensible(extraPaths)) { extraPaths.push(pathToAdd) } void pythonConfig.update(pythonSubConf, extraPaths, vscode.ConfigurationTarget.Workspace)