Skip to content

Commit

Permalink
Using Ian's setting name instead. Changed wording
Browse files Browse the repository at this point in the history
  • Loading branch information
rchiodo committed May 25, 2022
1 parent 6278a40 commit 52b0b24
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2001,10 +2001,10 @@
"description": "Add PYTHONNOUSERSITE to kernels before starting. This prevents global/user site-packages from being used in the PYTHONPATH of the kernel.",
"scope": "machine"
},
"jupyter.enablePreciseKernelCompletions": {
"jupyter.enableExtendedKernelCompletions": {
"type": "boolean",
"default": false,
"description": "Enables the use of Jedi to generate more precise kernel completions. This can impact peformance, such as preventing executions from running. Use with caution.",
"description": "Enables Jedi support for extended IntelliSense completions from running Jupyter kernels. This can greatly impact notebook cell execution performance. Use with caution.",
"scope": "machine"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/kernels/kernel.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ export abstract class BaseKernel implements IKernel {
if (file) {
result.push(`__vsc_ipynb_file__ = "${file.replace(/\\/g, '\\\\')}"`);
}
if (!this.configService.getSettings(undefined).enablePreciseKernelCompletions) {
if (!this.configService.getSettings(undefined).enableExtendedKernelCompletions) {
result.push(CodeSnippets.DisableJedi);
}

Expand Down
2 changes: 1 addition & 1 deletion src/platform/common/configSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class JupyterSettings implements IWatchableJupyterSettings {
public logKernelOutputSeparately: boolean = false;
public poetryPath: string = '';
public excludeUserSitePackages: boolean = false;
public enablePreciseKernelCompletions: boolean = false;
public enableExtendedKernelCompletions: boolean = false;

public variableTooltipFields: IVariableTooltipFields = {
python: {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export interface IJupyterSettings {
readonly logKernelOutputSeparately: boolean;
readonly poetryPath: string;
readonly excludeUserSitePackages: boolean;
readonly enablePreciseKernelCompletions: boolean;
readonly enableExtendedKernelCompletions: boolean;
}

export interface IVariableTooltipFields {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ import { Settings } from '../../../../platform/common/constants';
previousPythonCompletionTriggerCharactersValue = jupyterConfig.get<string>(
'pythonCompletionTriggerCharacters'
);
previousJediSetting = jupyterConfig.get<boolean>('enablePreciseKernelCompletions');
await jupyterConfig.update('enablePreciseKernelCompletions', useJedi, ConfigurationTarget.Global);
previousJediSetting = jupyterConfig.get<boolean>('enableExtendedKernelCompletions');
await jupyterConfig.update('enableExtendedKernelCompletions', useJedi, ConfigurationTarget.Global);
await jupyterConfig.update('pythonCompletionTriggerCharacters', '.%"\'', ConfigurationTarget.Global);
api = await initialize();
if (IS_REMOTE_NATIVE_TEST()) {
Expand Down Expand Up @@ -105,7 +105,7 @@ import { Settings } from '../../../../platform/common/constants';
ConfigurationTarget.Global
);
await jupyterConfig.update(
'enablePreciseKernelCompletions',
'enableExtendedKernelCompletions',
previousJediSetting,
ConfigurationTarget.Global
);
Expand Down

0 comments on commit 52b0b24

Please sign in to comment.