@@ -79,16 +79,6 @@ export class EditContributions extends Contribution {
79
79
{ execute : ( ) => this . run ( 'editor.action.formatDocument' ) }
80
80
) ;
81
81
registry . registerCommand ( EditContributions . Commands . COPY_FOR_FORUM , {
82
- execute : async ( ) => {
83
- const value = await this . currentValue ( ) ;
84
- if ( value !== undefined ) {
85
- this . clipboardService . writeText ( `[code]
86
- ${ value }
87
- [/code]` ) ;
88
- }
89
- } ,
90
- } ) ;
91
- registry . registerCommand ( EditContributions . Commands . COPY_FOR_GITHUB , {
92
82
execute : async ( ) => {
93
83
const value = await this . currentValue ( ) ;
94
84
if ( value !== undefined ) {
@@ -111,26 +101,21 @@ ${value}
111
101
} ) ;
112
102
registry . registerMenuAction ( ArduinoMenus . EDIT__TEXT_CONTROL_GROUP , {
113
103
commandId : EditContributions . Commands . COPY_FOR_FORUM . id ,
114
- label : 'Copy for Forum' ,
104
+ label : 'Copy for Forum (Markdown) ' ,
115
105
order : '2' ,
116
106
} ) ;
117
- registry . registerMenuAction ( ArduinoMenus . EDIT__TEXT_CONTROL_GROUP , {
118
- commandId : EditContributions . Commands . COPY_FOR_GITHUB . id ,
119
- label : 'Copy for GitHub' ,
120
- order : '3' ,
121
- } ) ;
122
107
registry . registerMenuAction ( ArduinoMenus . EDIT__TEXT_CONTROL_GROUP , {
123
108
commandId : CommonCommands . PASTE . id ,
124
- order : '4 ' ,
109
+ order : '3 ' ,
125
110
} ) ;
126
111
registry . registerMenuAction ( ArduinoMenus . EDIT__TEXT_CONTROL_GROUP , {
127
112
commandId : CommonCommands . SELECT_ALL . id ,
128
- order : '5 ' ,
113
+ order : '4 ' ,
129
114
} ) ;
130
115
registry . registerMenuAction ( ArduinoMenus . EDIT__TEXT_CONTROL_GROUP , {
131
116
commandId : EditContributions . Commands . GO_TO_LINE . id ,
132
117
label : 'Go to Line...' ,
133
- order : '6 ' ,
118
+ order : '5 ' ,
134
119
} ) ;
135
120
136
121
registry . registerMenuAction ( ArduinoMenus . EDIT__CODE_CONTROL_GROUP , {
@@ -195,11 +180,6 @@ ${value}
195
180
keybinding : 'CtrlCmd+Shift+C' ,
196
181
when : 'editorFocus' ,
197
182
} ) ;
198
- registry . registerKeybinding ( {
199
- command : EditContributions . Commands . COPY_FOR_GITHUB . id ,
200
- keybinding : 'CtrlCmd+Alt+C' ,
201
- when : 'editorFocus' ,
202
- } ) ;
203
183
registry . registerKeybinding ( {
204
184
command : EditContributions . Commands . GO_TO_LINE . id ,
205
185
keybinding : 'CtrlCmd+L' ,
@@ -280,9 +260,6 @@ export namespace EditContributions {
280
260
export const COPY_FOR_FORUM : Command = {
281
261
id : 'arduino-copy-for-forum' ,
282
262
} ;
283
- export const COPY_FOR_GITHUB : Command = {
284
- id : 'arduino-copy-for-github' ,
285
- } ;
286
263
export const GO_TO_LINE : Command = {
287
264
id : 'arduino-go-to-line' ,
288
265
} ;
0 commit comments