Skip to content

Commit

Permalink
revert back to boolean setting. wait for editor enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoyokrazy committed Sep 14, 2023
1 parent 49445ad commit 7520577
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -964,16 +964,12 @@ configurationRegistry.registerConfiguration({
default: false
},
[NotebookSetting.codeActionsOnSave]: {
markdownDescription: nls.localize('notebook.codeActionsOnSave', "Run a series of CodeActions for a notebook on save. CodeActions must be specified, the file must not be saved after delay, and the editor must not be shutting down. Example: `source.fixAll: true`"),
markdownDescription: nls.localize('notebook.codeActionsOnSave', "Experimental. Run a series of CodeActions for a notebook on save. CodeActions must be specified, the file must not be saved after delay, and the editor must not be shutting down. Example: `source.fixAll: true`"),
type: 'object',
additionalProperties: {
type: 'string',
enum: ['explicit', 'never'],
// enum: ['explicit', 'always', 'never'], -- autosave support needs to be built first
// nls.localize('always', 'Always triggers Code Actions on save, including autosave, focus, and window change events.'),
enumDescriptions: [nls.localize('never', 'Never triggers Code Actions on save.'), nls.localize('explicit', 'Triggers Code Actions only when explicitly saved.')],
type: 'boolean'
},
default: {},
default: {}
},
[NotebookSetting.formatOnCellExecution]: {
markdownDescription: nls.localize('notebook.formatOnCellExecution', "Format a notebook cell upon execution. A formatter must be available."),
Expand Down

0 comments on commit 7520577

Please sign in to comment.