File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,12 @@ export class TypescriptBuffer {
167
167
await this . state . client . execute ( "configure" , {
168
168
file : this . state . filePath ,
169
169
formatOptions : options . formatCodeOptions ,
170
+ preferences : {
171
+ includeCompletionsWithInsertText : true ,
172
+ includeCompletionsForModuleExports : false ,
173
+ quotePreference : "auto" ,
174
+ disableSuggestions : atom . config . get ( "atom-typescript.disableSuggestions" ) ,
175
+ } ,
170
176
} )
171
177
}
172
178
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ declare module "atom" {
25
25
"atom-typescript.ignoreUnusedSuggestionDiagnostics" : boolean
26
26
"atom-typescript.ignoreNonSuggestionSuggestionDiagnostics" : boolean
27
27
"atom-typescript.ignoredSuggestionDiagnostics" : string [ ]
28
+ "atom-typescript.disableSuggestions" : boolean
28
29
"atom-typescript.suppressAllDiagnostics" : boolean
29
30
"atom-typescript.tsFileExtensions" : string [ ]
30
31
"atom-typescript.jsFileExtensions" : string [ ]
@@ -56,6 +57,7 @@ declare module "atom" {
56
57
ignoreUnusedSuggestionDiagnostics : boolean
57
58
ignoreNonSuggestionSuggestionDiagnostics : boolean
58
59
ignoredSuggestionDiagnostics : string [ ]
60
+ disableSuggestions : boolean
59
61
suppressAllDiagnostics : boolean
60
62
tsFileExtensions : string [ ]
61
63
jsFileExtensions : string [ ]
Original file line number Diff line number Diff line change 204
204
"default" : [],
205
205
"order" : 110
206
206
},
207
+ "disableSuggestions" : {
208
+ "title" : " Disable all suggestions" ,
209
+ "type" : " boolean" ,
210
+ "default" : false ,
211
+ "order" : 115
212
+ },
207
213
"suppressAllDiagnostics" : {
208
214
"title" : " Suppress all diagnostics" ,
209
215
"description" : " The package will not report any problems with TypeScript. Use only if you know what you are doing" ,
You can’t perform that action at this time.
0 commit comments