You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed default settings for Code Actions on Save (microsoft#194409)
* removed default settings
* removed whitespace
* changed wordage
* boolean and string enum together
* updated language around settings, mentioning things will be deprecated
* changed settings accross noteboks as well
* Update codeActionModel.ts
enumDescriptions: [nls.localize('alwaysSave','Always triggers Code Actions on save'),nls.localize('neverSave','Never triggers Code Actions on save'),nls.localize('explicitSave','Triggers Code Actions only when explicitly saved')],
25
-
default: 'explicit',
22
+
type: ['string','boolean'],
23
+
enum: ['always','explicit','never',true,false],
24
+
enumDescriptions: [
25
+
nls.localize('alwaysSave','Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'),
26
+
nls.localize('explicitSave','Triggers Code Actions only when explicitly saved'),
27
+
nls.localize('neverSave','Never triggers Code Actions on save'),
28
+
nls.localize('explicitSaveBoolean','Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'),
29
+
nls.localize('neverSaveBoolean','Never triggers Code Actions on save. This value will be deprecated in favor of "never".')
markdownDescription: nls.localize('editor.codeActionsOnSave','Run CodeActions for the editor on save. CodeActions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'),
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`"),
967
+
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": "explicit"`'),
968
968
type: 'object',
969
969
additionalProperties: {
970
-
type: 'string',
971
-
enum: ['explicit','never'],
970
+
type: ['string','boolean'],
971
+
enum: ['explicit','never',true,false],
972
972
// enum: ['explicit', 'always', 'never'], -- autosave support needs to be built first
973
973
// nls.localize('always', 'Always triggers Code Actions on save, including autosave, focus, and window change events.'),
974
-
enumDescriptions: [nls.localize('explicit','Triggers Code Actions only when explicitly saved.',nls.localize('never','Never triggers Code Actions on save.'))],
974
+
enumDescriptions: [nls.localize('explicit','Triggers Code Actions only when explicitly saved.'),nls.localize('never','Never triggers Code Actions on save.'),nls.localize('explicitBoolean','Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'),nls.localize('neverBoolean','Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "never".')],
0 commit comments