Skip to content

Commit

Permalink
fix: markdownString must implements MarkupContent
Browse files Browse the repository at this point in the history
  • Loading branch information
weirongxu committed Mar 28, 2022
1 parent 46561fe commit b6fca6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/edit/textEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 4 additions & 1 deletion src/markdown/markdownString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b6fca6a

Please sign in to comment.