@@ -10,20 +10,9 @@ import { IAction } from '../../../../base/common/actions.js';
10
10
import { CancellationToken } from '../../../../base/common/cancellation.js' ;
11
11
import { Color } from '../../../../base/common/color.js' ;
12
12
import { onUnexpectedError } from '../../../../base/common/errors.js' ;
13
+ import { HierarchicalKind } from '../../../../base/common/hierarchicalKind.js' ;
13
14
import { Lazy } from '../../../../base/common/lazy.js' ;
14
15
import { Disposable , MutableDisposable } from '../../../../base/common/lifecycle.js' ;
15
- import { ICodeEditor } from '../../../browser/editorBrowser.js' ;
16
- import { IPosition , Position } from '../../../common/core/position.js' ;
17
- import { IEditorContribution , ScrollType } from '../../../common/editorCommon.js' ;
18
- import { CodeActionTriggerType } from '../../../common/languages.js' ;
19
- import { IModelDeltaDecoration } from '../../../common/model.js' ;
20
- import { ModelDecorationOptions } from '../../../common/model/textModel.js' ;
21
- import { ILanguageFeaturesService } from '../../../common/services/languageFeatures.js' ;
22
- import { ApplyCodeActionReason , applyCodeAction } from './codeAction.js' ;
23
- import { CodeActionKeybindingResolver } from './codeActionKeybindingResolver.js' ;
24
- import { toMenuItems } from './codeActionMenu.js' ;
25
- import { LightBulbWidget } from './lightBulbWidget.js' ;
26
- import { MessageController } from '../../message/browser/messageController.js' ;
27
16
import { localize } from '../../../../nls.js' ;
28
17
import { IActionListDelegate } from '../../../../platform/actionWidget/browser/actionList.js' ;
29
18
import { IActionWidgetService } from '../../../../platform/actionWidget/browser/actionWidget.js' ;
@@ -36,10 +25,20 @@ import { IEditorProgressService } from '../../../../platform/progress/common/pro
36
25
import { editorFindMatchHighlight , editorFindMatchHighlightBorder } from '../../../../platform/theme/common/colorRegistry.js' ;
37
26
import { isHighContrast } from '../../../../platform/theme/common/theme.js' ;
38
27
import { registerThemingParticipant } from '../../../../platform/theme/common/themeService.js' ;
28
+ import { ICodeEditor } from '../../../browser/editorBrowser.js' ;
29
+ import { IPosition , Position } from '../../../common/core/position.js' ;
30
+ import { IEditorContribution , ScrollType } from '../../../common/editorCommon.js' ;
31
+ import { CodeActionTriggerType } from '../../../common/languages.js' ;
32
+ import { IModelDeltaDecoration } from '../../../common/model.js' ;
33
+ import { ModelDecorationOptions } from '../../../common/model/textModel.js' ;
34
+ import { ILanguageFeaturesService } from '../../../common/services/languageFeatures.js' ;
35
+ import { MessageController } from '../../message/browser/messageController.js' ;
39
36
import { CodeActionAutoApply , CodeActionFilter , CodeActionItem , CodeActionKind , CodeActionSet , CodeActionTrigger , CodeActionTriggerSource } from '../common/types.js' ;
37
+ import { ApplyCodeActionReason , applyCodeAction } from './codeAction.js' ;
38
+ import { CodeActionKeybindingResolver } from './codeActionKeybindingResolver.js' ;
39
+ import { toMenuItems } from './codeActionMenu.js' ;
40
40
import { CodeActionModel , CodeActionsState } from './codeActionModel.js' ;
41
- import { HierarchicalKind } from '../../../../base/common/hierarchicalKind.js' ;
42
- import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js' ;
41
+ import { LightBulbWidget } from './lightBulbWidget.js' ;
43
42
44
43
interface IActionShowOptions {
45
44
readonly includeDisabledActions ?: boolean ;
@@ -79,13 +78,12 @@ export class CodeActionController extends Disposable implements IEditorContribut
79
78
@IConfigurationService private readonly _configurationService : IConfigurationService ,
80
79
@IActionWidgetService private readonly _actionWidgetService : IActionWidgetService ,
81
80
@IInstantiationService private readonly _instantiationService : IInstantiationService ,
82
- @ITelemetryService private readonly _telemetryService : ITelemetryService ,
83
81
@IEditorProgressService private readonly _progressService : IEditorProgressService ,
84
82
) {
85
83
super ( ) ;
86
84
87
85
this . _editor = editor ;
88
- this . _model = this . _register ( new CodeActionModel ( this . _editor , languageFeaturesService . codeActionProvider , markerService , contextKeyService , progressService , _configurationService , this . _telemetryService ) ) ;
86
+ this . _model = this . _register ( new CodeActionModel ( this . _editor , languageFeaturesService . codeActionProvider , markerService , contextKeyService , progressService , _configurationService ) ) ;
89
87
this . _register ( this . _model . onDidChangeState ( newState => this . update ( newState ) ) ) ;
90
88
91
89
this . _lightBulbWidget = new Lazy ( ( ) => {
0 commit comments