Skip to content

Commit 6837b27

Browse files
committed
fix: markdownString must implements MarkupContent
1 parent 334bca8 commit 6837b27

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/edit/textEdit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export enum EndOfLine {
1414

1515
export enum EnvironmentVariableMutatorType {
1616
Replace = 1,
17-
Append = 2,
18-
Prepend = 3
17+
Append = 2,
18+
Prepend = 3
1919
}
2020

2121
export class TextEdit implements ITextEdit {

src/markdown/markdownString.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
5+
import { MarkupContent, MarkupKind } from "vscode-languageserver-protocol"
56
import { URI } from "vscode-uri"
67
import { BaseMarkdownString } from "./baseMarkdownString"
78

8-
export class MarkdownString {
9+
export class MarkdownString implements MarkupContent {
10+
public kind: MarkupKind = MarkupKind.Markdown
11+
912
readonly #delegate: BaseMarkdownString
1013

1114
public static isMarkdownString(thing: any): thing is MarkdownString {

0 commit comments

Comments
 (0)