mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
Fixes #116305: Add fake consumer of IMarkerDecorationsService
to instantiate it
This commit is contained in:
parent
b91b917e9a
commit
3516df762d
26
src/vs/editor/browser/services/markerDecorations.ts
Normal file
26
src/vs/editor/browser/services/markerDecorations.ts
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { IMarkerDecorationsService } from 'vs/editor/common/services/markersDecorationService';
|
||||
import { registerEditorContribution } from 'vs/editor/browser/editorExtensions';
|
||||
import { ICodeEditor } from 'vs/editor/browser/editorBrowser';
|
||||
import { IEditorContribution } from 'vs/editor/common/editorCommon';
|
||||
|
||||
export class MarkerDecorationsContribution implements IEditorContribution {
|
||||
|
||||
public static readonly ID: string = 'editor.contrib.markerDecorations';
|
||||
|
||||
constructor(
|
||||
_editor: ICodeEditor,
|
||||
@IMarkerDecorationsService _markerDecorationsService: IMarkerDecorationsService
|
||||
) {
|
||||
// Doesn't do anything, just requires `IMarkerDecorationsService` to make sure it gets instantiated
|
||||
}
|
||||
|
||||
dispose(): void {
|
||||
}
|
||||
}
|
||||
|
||||
registerEditorContribution(MarkerDecorationsContribution.ID, MarkerDecorationsContribution);
|
|
@ -3,6 +3,8 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import 'vs/editor/browser/services/markerDecorations';
|
||||
|
||||
import 'vs/css!./media/editor';
|
||||
import * as nls from 'vs/nls';
|
||||
import * as dom from 'vs/base/browser/dom';
|
||||
|
|
Loading…
Reference in a new issue