Skip to content

Commit

Permalink
lowercase enable
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Nov 18, 2023
1 parent 956ee20 commit 16021ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@
"scope": "resource",
"type": "array"
},
"python.REPL.EnableREPLSmartSend": {
"python.REPL.enableREPLSmartSend": {
"default": true,
"description": "%python.EnableREPLSmartSend.description%",
"scope": "resource",
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export interface ITerminalSettings {
}

export interface IREPLSettings {
readonly EnableREPLSmartSend: boolean;
readonly enableREPLSmartSend: boolean;
}

export interface IExperiments {
Expand Down
2 changes: 1 addition & 1 deletion src/client/terminals/codeExecution/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class CodeExecutionHelper implements ICodeExecutionHelper {
const configuration = this.serviceContainer.get<IConfigurationService>(IConfigurationService);
if (configuration) {
const pythonSettings = configuration.getSettings(this.activeResourceService.getActiveResource());
smartSendSettingsEnabledVal = pythonSettings.REPL.EnableREPLSmartSend;
smartSendSettingsEnabledVal = pythonSettings.REPL.enableREPLSmartSend;
}

const input = JSON.stringify({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class TerminalCodeExecutionProvider implements ICodeExecutionService {
const selection = await showWarningMessage(Diagnostics.invalidSmartSendMessage, Repl.disableSmartSend);
traceInfo(`Selected file contains invalid Python or Deprecated Python 2 code`);
if (selection === Repl.disableSmartSend) {
this.configurationService.updateSetting('REPL.EnableREPLSmartSend', false, resource);
this.configurationService.updateSetting('REPL.enableREPLSmartSend', false, resource);
}
} else {
await this.getTerminalService(resource).sendText(code);
Expand Down

0 comments on commit 16021ee

Please sign in to comment.