From 3542f9e67629fe1814ed323820320a996c5818da Mon Sep 17 00:00:00 2001 From: Weirong Xu Date: Fri, 18 Mar 2022 10:50:25 +0800 Subject: [PATCH] fix: markdownString must implements MarkupContent --- src/edit/textEdit.ts | 4 ++-- src/markdown/markdownString.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/edit/textEdit.ts b/src/edit/textEdit.ts index 1ba2a37b262..cad9cc9446d 100644 --- a/src/edit/textEdit.ts +++ b/src/edit/textEdit.ts @@ -14,8 +14,8 @@ export enum EndOfLine { export enum EnvironmentVariableMutatorType { Replace = 1, - Append = 2, - Prepend = 3 + Append = 2, + Prepend = 3 } export class TextEdit implements ITextEdit { diff --git a/src/markdown/markdownString.ts b/src/markdown/markdownString.ts index 5899abfae88..30663402495 100644 --- a/src/markdown/markdownString.ts +++ b/src/markdown/markdownString.ts @@ -2,10 +2,13 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +import { MarkupContent, MarkupKind } from "vscode-languageserver-protocol" import { URI } from "vscode-uri" import { BaseMarkdownString } from "./baseMarkdownString" -export class MarkdownString { +export class MarkdownString implements MarkupContent { + public kind: MarkupKind = MarkupKind.Markdown + readonly #delegate: BaseMarkdownString public static isMarkdownString(thing: any): thing is MarkdownString {