Skip to content

Commit

Permalink
Merge pull request #15 from rmchale/persist-custom-paths
Browse files Browse the repository at this point in the history
fix: persist node & python paths
  • Loading branch information
twibiral authored May 22, 2022
2 parents d30617b + 594d651 commit 7676e18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SettingsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class SettingsTab extends PluginSettingTab {
.onChange(async (value) => {
this.plugin.settings.nodePath = value;
console.log('Node path set to: ' + value);
await this.plugin.saveSettings();
}));
new Setting(containerEl)
.setName('Node arguments')
Expand All @@ -52,6 +53,7 @@ export class SettingsTab extends PluginSettingTab {
.onChange(async (value) => {
this.plugin.settings.nodeArgs = value;
console.log('Node path set to: ' + value);
await this.plugin.saveSettings();
}));

new Setting(containerEl)
Expand All @@ -62,6 +64,7 @@ export class SettingsTab extends PluginSettingTab {
.onChange(async (value) => {
this.plugin.settings.pythonPath = value;
console.log('Python path set to: ' + value);
await this.plugin.saveSettings();
}));
new Setting(containerEl)
.setName('Python arguments')
Expand All @@ -70,6 +73,7 @@ export class SettingsTab extends PluginSettingTab {
.onChange(async (value) => {
this.plugin.settings.pythonArgs = value;
console.log('Node path set to: ' + value);
await this.plugin.saveSettings();
}));

new Setting(containerEl)
Expand Down

0 comments on commit 7676e18

Please sign in to comment.