Skip to content

Commit

Permalink
fix(autocomplete) increase our priority to be above snippets
Browse files Browse the repository at this point in the history
closes #566
  • Loading branch information
basarat committed Oct 4, 2015
1 parent 39c75f4 commit be8986f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/main/atom/autoCompleteProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function triggerAutocompletePlus() {
exports.triggerAutocompletePlus = triggerAutocompletePlus;
exports.provider = {
selector: '.source.ts',
inclusionPriority: 4,
inclusionPriority: 3,
suggestionPriority: 3,
excludeLowerPriority: false,
getSuggestions: function (options) {
var filePath = options.editor.getPath();
Expand Down
4 changes: 3 additions & 1 deletion lib/main/atom/autoCompleteProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ declare module autocompleteplus {
export interface Provider {
inclusionPriority?: number;
excludeLowerPriority?: boolean;
suggestionPriority?: number;
selector: string;
disableForSelector?: string;
getSuggestions: (options: RequestOptions) => Promise<Suggestion[]>;
Expand All @@ -79,7 +80,8 @@ interface SnippetsContianer {

export var provider: autocompleteplus.Provider = {
selector: '.source.ts',
inclusionPriority: 4,
inclusionPriority: 3,
suggestionPriority: 3,
excludeLowerPriority: false,
getSuggestions: (options: autocompleteplus.RequestOptions): Promise<autocompleteplus.Suggestion[]>=> {

Expand Down

0 comments on commit be8986f

Please sign in to comment.