|
1 | 1 | /* eslint-disable no-underscore-dangle */ |
2 | 2 | import * as path from "path"; |
3 | 3 | import * as vs from "vscode"; |
4 | | -import { CancellationToken, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemProvider, CompletionList, CompletionTriggerKind, Disposable, MarkdownString, Position, Range, SnippetString, TextDocument } from "vscode"; |
| 4 | +import { CancellationToken, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemProvider, CompletionList, CompletionTriggerKind, Disposable, Position, Range, SnippetString, TextDocument } from "vscode"; |
5 | 5 | import * as as from "../../shared/analysis_server_types"; |
6 | 6 | import { IAmDisposable, Logger } from "../../shared/interfaces"; |
7 | 7 | import { disposeAll, flatMap } from "../../shared/utils"; |
8 | 8 | import { fsPath } from "../../shared/utils/fs"; |
9 | 9 | import { resolvedPromise } from "../../shared/utils/promises"; |
10 | | -import { cleanDartdoc } from "../../shared/vscode/extension_utils"; |
| 10 | +import { cleanDartdoc, createMarkdownString } from "../../shared/vscode/extension_utils"; |
11 | 11 | import { DelayedCompletionItem, LazyCompletionItem } from "../../shared/vscode/interfaces"; |
12 | 12 | import { DasAnalyzerClient } from "../analysis/analyzer_das"; |
13 | 13 | import { hasOverlappingEdits } from "../commands/edit_das"; |
@@ -512,7 +512,7 @@ export class DartCompletionItemProvider implements CompletionItemProvider, IAmDi |
512 | 512 | if (suggestion.isDeprecated) |
513 | 513 | completion.tags = [vs.CompletionItemTag.Deprecated]; |
514 | 514 | completion.detail = detail; |
515 | | - completion._documentation = docs ? new MarkdownString(docs) : undefined; |
| 515 | + completion._documentation = docs ? createMarkdownString(docs) : undefined; |
516 | 516 | completion.insertText = completionText; |
517 | 517 | completion.keepWhitespace = true; |
518 | 518 | completion.range = { |
|
0 commit comments