Skip to content

Commit c7479a2

Browse files
committed
Avoid language-server-types import at runtime
1 parent 467b134 commit c7479a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/yaml.worker.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
type FormattingOptions,
1212
type Hover,
1313
type LocationLink,
14-
MarkupKind,
1514
type Position,
1615
type Range,
1716
type SelectionRange,
@@ -142,8 +141,8 @@ initialize<YAMLWorker, MonacoYamlOptions>((ctx, { enableSchemaRequest, ...langua
142141
textDocument: {
143142
completion: {
144143
completionItem: {
145-
documentationFormat: [MarkupKind.Markdown, MarkupKind.PlainText],
146-
commitCharactersSupport: true
144+
commitCharactersSupport: true,
145+
documentationFormat: ['markdown', 'plaintext']
147146
}
148147
},
149148
moniker: {}

0 commit comments

Comments
 (0)