mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-06-09 09:31:25 +00:00
Merge pull request #81 from remcohaszing/fix-mistyped-enums
Fix mismatched enum types
This commit is contained in:
commit
d4ddc80b51
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ export type WorkerAccessor = (...more: Uri[]) => PromiseLike<YAMLWorker>;
|
|||
|
||||
// --- diagnostics --- ---
|
||||
|
||||
function toSeverity(lsSeverity: number): MarkerSeverity {
|
||||
function toSeverity(lsSeverity: ls.DiagnosticSeverity): MarkerSeverity {
|
||||
switch (lsSeverity) {
|
||||
case ls.DiagnosticSeverity.Error:
|
||||
return MarkerSeverity.Error;
|
||||
|
|
@ -176,7 +176,7 @@ function toRange(range: ls.Range): Range {
|
|||
);
|
||||
}
|
||||
|
||||
function toCompletionItemKind(kind: number): languages.CompletionItemKind {
|
||||
function toCompletionItemKind(kind: languages.CompletionItemKind): languages.CompletionItemKind {
|
||||
const mItemKind = languages.CompletionItemKind;
|
||||
|
||||
switch (kind) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue