From f40d415098c723543207a70b6afd3c57a45f02c5 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 14 Jan 2019 22:07:35 -0600 Subject: [PATCH] Fix typo in pythonPath setting name Fixes #4047 --- news/2 Fixes/4047.md | 1 + src/client/extension.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 news/2 Fixes/4047.md diff --git a/news/2 Fixes/4047.md b/news/2 Fixes/4047.md new file mode 100644 index 000000000000..2a417b576d5e --- /dev/null +++ b/news/2 Fixes/4047.md @@ -0,0 +1 @@ +fix `pythonPath` typo (thanks [David Lechner](https://github.com/dlech)) diff --git a/src/client/extension.ts b/src/client/extension.ts index bb9d72540dbb..7f4e70f6c3ab 100644 --- a/src/client/extension.ts +++ b/src/client/extension.ts @@ -317,7 +317,7 @@ async function sendStartupTelemetry(activatedPromise: Promise, serviceConta function hasUserDefinedPythonPath(resource: Resource, serviceContainer: IServiceContainer) { const workspaceService = serviceContainer.get(IWorkspaceService); - const settings = workspaceService.getConfiguration('python', resource)!.inspect('pyhontPath')!; + const settings = workspaceService.getConfiguration('python', resource)!.inspect('pythonPath')!; return (settings.workspaceFolderValue && settings.workspaceFolderValue !== 'python') || (settings.workspaceValue && settings.workspaceValue !== 'python') || (settings.globalValue && settings.globalValue !== 'python');