From 36fed38045866491bc176e8838bb45d9bc7da9fa Mon Sep 17 00:00:00 2001 From: Mike Mazmanyan Date: Thu, 11 May 2017 01:38:32 -0400 Subject: [PATCH] Updating completionItemProvider to use newly added items from CompletionItemKind enum --- package.json | 2 +- src/features/completionItemProvider.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7a038f43e..15c893fee 100644 --- a/package.json +++ b/package.json @@ -321,7 +321,7 @@ } ], "engines": { - "vscode": "^1.10.1" + "vscode": "^1.12.0" }, "activationEvents": [ "onLanguage:csharp", diff --git a/src/features/completionItemProvider.ts b/src/features/completionItemProvider.ts index 060cece63..2958f337a 100644 --- a/src/features/completionItemProvider.ts +++ b/src/features/completionItemProvider.ts @@ -90,7 +90,7 @@ _kinds['Class'] = CompletionItemKind.Class; _kinds['Delegate'] = CompletionItemKind.Class; // need a better option for this. _kinds['Enum'] = CompletionItemKind.Enum; _kinds['Interface'] = CompletionItemKind.Interface; -_kinds['Struct'] = CompletionItemKind.Class; // need a better option for this. +_kinds['Struct'] = CompletionItemKind.Struct; // variables _kinds['Local'] = CompletionItemKind.Variable; @@ -98,8 +98,8 @@ _kinds['Parameter'] = CompletionItemKind.Variable; _kinds['RangeVariable'] = CompletionItemKind.Variable; // members -_kinds['EnumMember'] = CompletionItemKind.Property; // need a better option for this. -_kinds['Event'] = CompletionItemKind.Field; // need a better option for this. +_kinds['EnumMember'] = CompletionItemKind.EnumMember; +_kinds['Event'] = CompletionItemKind.Event; _kinds['Field'] = CompletionItemKind.Field; _kinds['Property'] = CompletionItemKind.Property; _kinds['Method'] = CompletionItemKind.Method;