File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
editor/contrib/parameterHints/browser
workbench/contrib/interactive/browser Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
20
20
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
21
21
import { ParameterHintsWidget } from './parameterHintsWidget' ;
22
22
23
- export const ParameterHintsContributionID = 'editor.controller.parameterHints' ;
23
+ export class ParameterHintsController extends Disposable implements IEditorContribution {
24
24
25
- class ParameterHintsController extends Disposable implements IEditorContribution {
25
+ public static readonly ID = 'editor.controller.parameterHints' ;
26
26
27
27
public static get ( editor : ICodeEditor ) : ParameterHintsController | null {
28
- return editor . getContribution < ParameterHintsController > ( ParameterHintsContributionID ) ;
28
+ return editor . getContribution < ParameterHintsController > ( ParameterHintsController . ID ) ;
29
29
}
30
30
31
31
private readonly editor : ICodeEditor ;
@@ -96,7 +96,7 @@ export class TriggerParameterHintsAction extends EditorAction {
96
96
}
97
97
}
98
98
99
- registerEditorContribution ( ParameterHintsContributionID , ParameterHintsController , EditorContributionInstantiation . BeforeFirstInteraction ) ;
99
+ registerEditorContribution ( ParameterHintsController . ID , ParameterHintsController , EditorContributionInstantiation . BeforeFirstInteraction ) ;
100
100
registerEditorAction ( TriggerParameterHintsAction ) ;
101
101
102
102
const weight = KeybindingWeight . EditorContrib + 75 ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ import { IContextMenuService } from 'vs/platform/contextview/browser/contextView
41
41
import { createActionViewItem , createAndFillInActionBarActions } from 'vs/platform/actions/browser/menuEntryActionViewItem' ;
42
42
import { IAction } from 'vs/base/common/actions' ;
43
43
import { EditorExtensionsRegistry } from 'vs/editor/browser/editorExtensions' ;
44
- import { ParameterHintsContributionID } from 'vs/editor/contrib/parameterHints/browser/parameterHints' ;
44
+ import { ParameterHintsController } from 'vs/editor/contrib/parameterHints/browser/parameterHints' ;
45
45
import { MenuPreventer } from 'vs/workbench/contrib/codeEditor/browser/menuPreventer' ;
46
46
import { SelectionClipboardContributionID } from 'vs/workbench/contrib/codeEditor/browser/selectionClipboard' ;
47
47
import { ContextMenuController } from 'vs/editor/contrib/contextmenu/browser/contextmenu' ;
@@ -370,10 +370,10 @@ export class InteractiveEditor extends EditorPane {
370
370
SelectionClipboardContributionID ,
371
371
ContextMenuController . ID ,
372
372
SuggestController . ID ,
373
+ ParameterHintsController . ID ,
373
374
SnippetController2 . ID ,
374
375
TabCompletionController . ID ,
375
376
ModesHoverController . ID ,
376
- ParameterHintsContributionID ,
377
377
MarkerController . ID
378
378
] )
379
379
}
You can’t perform that action at this time.
0 commit comments