@@ -24,7 +24,7 @@ export class NotebookIndentUsingTabs extends Action2 {
24
24
25
25
constructor ( ) {
26
26
super ( {
27
- id : NotebookIndentUsingSpaces . ID ,
27
+ id : NotebookIndentUsingTabs . ID ,
28
28
title : nls . localize ( 'indentUsingTabs' , "Indent Using Tabs" ) ,
29
29
precondition : undefined ,
30
30
} ) ;
@@ -56,7 +56,7 @@ export class NotebookChangeTabDisplaySize extends Action2 {
56
56
57
57
constructor ( ) {
58
58
super ( {
59
- id : NotebookIndentUsingSpaces . ID ,
59
+ id : NotebookChangeTabDisplaySize . ID ,
60
60
title : nls . localize ( 'changeTabDisplaySize' , "Change Tab Display Size" ) ,
61
61
precondition : undefined ,
62
62
} ) ;
@@ -72,15 +72,14 @@ export class NotebookIndentationToSpacesAction extends Action2 {
72
72
73
73
constructor ( ) {
74
74
super ( {
75
- id : NotebookIndentUsingSpaces . ID ,
75
+ id : NotebookIndentationToSpacesAction . ID ,
76
76
title : nls . localize ( 'convertIndentationToSpaces' , "Convert Indentation to Spaces" ) ,
77
77
precondition : undefined ,
78
78
} ) ;
79
79
}
80
80
81
81
override run ( accessor : ServicesAccessor , ...args : any [ ] ) : void {
82
82
convertNotebookIndentation ( accessor , true ) ;
83
-
84
83
}
85
84
}
86
85
@@ -89,7 +88,7 @@ export class NotebookIndentationToTabsAction extends Action2 {
89
88
90
89
constructor ( ) {
91
90
super ( {
92
- id : NotebookIndentUsingSpaces . ID ,
91
+ id : NotebookIndentationToTabsAction . ID ,
93
92
title : nls . localize ( 'convertIndentationToTabs' , "Convert Indentation to Tabs" ) ,
94
93
precondition : undefined ,
95
94
} ) ;
@@ -194,8 +193,7 @@ function convertNotebookIndentation(accessor: ServicesAccessor, tabsToSpaces: bo
194
193
195
194
bulkEditService . apply ( edits , { label : nls . localize ( 'convertIndentation' , "Convert Indentation" ) , code : 'undoredo.convertIndentation' , } ) ;
196
195
197
- } ) ) . then ( ( notebookEdits ) => {
198
-
196
+ } ) ) . then ( ( ) => {
199
197
// store the initial values of the configuration
200
198
const initialConfig = configurationService . getValue ( NotebookSetting . cellEditorOptionsCustomizations ) as any ;
201
199
const initialIndentSize = initialConfig [ 'editor.indentSize' ] ;
@@ -255,3 +253,7 @@ function getIndentationEditOperations(model: ITextModel, tabSize: number, tabsTo
255
253
}
256
254
257
255
registerAction2 ( NotebookIndentUsingSpaces ) ;
256
+ registerAction2 ( NotebookIndentUsingTabs ) ;
257
+ registerAction2 ( NotebookChangeTabDisplaySize ) ;
258
+ registerAction2 ( NotebookIndentationToSpacesAction ) ;
259
+ registerAction2 ( NotebookIndentationToTabsAction ) ;
0 commit comments