3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
+ import { GO_TO_BOTTOM_HOVER_ACTION_ID , GO_TO_TOP_HOVER_ACTION_ID , PAGE_DOWN_HOVER_ACTION_ID , PAGE_UP_HOVER_ACTION_ID , SCROLL_DOWN_HOVER_ACTION_ID , SCROLL_LEFT_HOVER_ACTION_ID , SCROLL_RIGHT_HOVER_ACTION_ID , SCROLL_UP_HOVER_ACTION_ID , SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID , SHOW_OR_FOCUS_HOVER_ACTION_ID } from 'vs/editor/contrib/hover/browser/hoverActionIds' ;
6
7
import { KeyChord , KeyCode , KeyMod } from 'vs/base/common/keyCodes' ;
7
8
import { ICodeEditor } from 'vs/editor/browser/editorBrowser' ;
8
9
import { EditorAction , ServicesAccessor } from 'vs/editor/browser/editorExtensions' ;
@@ -27,7 +28,7 @@ export class ShowOrFocusHoverAction extends EditorAction {
27
28
28
29
constructor ( ) {
29
30
super ( {
30
- id : 'editor.action.showHover' ,
31
+ id : SHOW_OR_FOCUS_HOVER_ACTION_ID ,
31
32
label : nls . localize ( {
32
33
key : 'showOrFocusHover' ,
33
34
comment : [
@@ -109,7 +110,7 @@ export class ShowDefinitionPreviewHoverAction extends EditorAction {
109
110
110
111
constructor ( ) {
111
112
super ( {
112
- id : 'editor.action.showDefinitionPreviewHover' ,
113
+ id : SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID ,
113
114
label : nls . localize ( {
114
115
key : 'showDefinitionPreviewHover' ,
115
116
comment : [
@@ -153,7 +154,7 @@ export class ScrollUpHoverAction extends EditorAction {
153
154
154
155
constructor ( ) {
155
156
super ( {
156
- id : 'editor.action.scrollUpHover' ,
157
+ id : SCROLL_UP_HOVER_ACTION_ID ,
157
158
label : nls . localize ( {
158
159
key : 'scrollUpHover' ,
159
160
comment : [
@@ -186,7 +187,7 @@ export class ScrollDownHoverAction extends EditorAction {
186
187
187
188
constructor ( ) {
188
189
super ( {
189
- id : 'editor.action.scrollDownHover' ,
190
+ id : SCROLL_DOWN_HOVER_ACTION_ID ,
190
191
label : nls . localize ( {
191
192
key : 'scrollDownHover' ,
192
193
comment : [
@@ -219,7 +220,7 @@ export class ScrollLeftHoverAction extends EditorAction {
219
220
220
221
constructor ( ) {
221
222
super ( {
222
- id : 'editor.action.scrollLeftHover' ,
223
+ id : SCROLL_LEFT_HOVER_ACTION_ID ,
223
224
label : nls . localize ( {
224
225
key : 'scrollLeftHover' ,
225
226
comment : [
@@ -252,7 +253,7 @@ export class ScrollRightHoverAction extends EditorAction {
252
253
253
254
constructor ( ) {
254
255
super ( {
255
- id : 'editor.action.scrollRightHover' ,
256
+ id : SCROLL_RIGHT_HOVER_ACTION_ID ,
256
257
label : nls . localize ( {
257
258
key : 'scrollRightHover' ,
258
259
comment : [
@@ -285,7 +286,7 @@ export class PageUpHoverAction extends EditorAction {
285
286
286
287
constructor ( ) {
287
288
super ( {
288
- id : 'editor.action.pageUpHover' ,
289
+ id : PAGE_UP_HOVER_ACTION_ID ,
289
290
label : nls . localize ( {
290
291
key : 'pageUpHover' ,
291
292
comment : [
@@ -319,7 +320,7 @@ export class PageDownHoverAction extends EditorAction {
319
320
320
321
constructor ( ) {
321
322
super ( {
322
- id : 'editor.action.pageDownHover' ,
323
+ id : PAGE_DOWN_HOVER_ACTION_ID ,
323
324
label : nls . localize ( {
324
325
key : 'pageDownHover' ,
325
326
comment : [
@@ -353,7 +354,7 @@ export class GoToTopHoverAction extends EditorAction {
353
354
354
355
constructor ( ) {
355
356
super ( {
356
- id : 'editor.action.goToTopHover' ,
357
+ id : GO_TO_TOP_HOVER_ACTION_ID ,
357
358
label : nls . localize ( {
358
359
key : 'goToTopHover' ,
359
360
comment : [
@@ -388,7 +389,7 @@ export class GoToBottomHoverAction extends EditorAction {
388
389
389
390
constructor ( ) {
390
391
super ( {
391
- id : 'editor.action.goToBottomHover' ,
392
+ id : GO_TO_BOTTOM_HOVER_ACTION_ID ,
392
393
label : nls . localize ( {
393
394
key : 'goToBottomHover' ,
394
395
comment : [
0 commit comments