Fixes #116305: Add fake consumer of IMarkerDecorationsService to instantiate it

This commit is contained in:
Alexandru Dima 2021-02-25 19:19:57 +01:00
parent b91b917e9a
commit 3516df762d
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
2 changed files with 28 additions and 0 deletions

View 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);

View file

@ -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';