From cd6475a044a818cd8ffee35093b131bab5aecbc9 Mon Sep 17 00:00:00 2001 From: Basarat Syed <4317621+angelestelar5z@users.noreply.github.com> Date: Tue, 19 May 2015 14:25:50 +1000 Subject: [PATCH] be higher priority compared to snippets closes https://github.com/TypeStrong/atom-typescript/issues/353 refs https://github.com/OmniSharp/omnisharp-atom/pull/305 --- dist/main/atom/autoCompleteProvider.js | 2 ++ lib/main/atom/autoCompleteProvider.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/main/atom/autoCompleteProvider.js b/dist/main/atom/autoCompleteProvider.js index 355f13f4..1d3b4556 100644 --- a/dist/main/atom/autoCompleteProvider.js +++ b/dist/main/atom/autoCompleteProvider.js @@ -33,6 +33,8 @@ function loadSnippets() { loadSnippets(); exports.provider = { selector: '.source.ts', + inclusionPriority: 3, + excludeLowerPriority: false, getSuggestions: function (options) { var filePath = options.editor.getPath(); if (!filePath) diff --git a/lib/main/atom/autoCompleteProvider.ts b/lib/main/atom/autoCompleteProvider.ts index 1102873f..55a27954 100644 --- a/lib/main/atom/autoCompleteProvider.ts +++ b/lib/main/atom/autoCompleteProvider.ts @@ -114,6 +114,8 @@ loadSnippets(); export var provider: autocompleteplus.Provider = { selector: '.source.ts', + inclusionPriority: 3, + excludeLowerPriority: false, getSuggestions: (options: autocompleteplus.RequestOptions): Promise=> { var filePath = options.editor.getPath();