Skip to content

Commit 0d349e0

Browse files
committed
Add quotePreference option
1 parent 9c522bb commit 0d349e0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

lib/main/typescriptBuffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class TypescriptBuffer {
172172
includeCompletionsForModuleExports: atom.config.get(
173173
"atom-typescript.includeCompletionsForModuleExports",
174174
),
175-
quotePreference: "auto",
175+
quotePreference: atom.config.get("atom-typescript.quotePreference"),
176176
disableSuggestions: atom.config.get("atom-typescript.disableSuggestions"),
177177
},
178178
})

lib/typings/atom-config.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ declare module "atom" {
2121
"atom-typescript.sigHelpDisplayOnChange": boolean
2222
"atom-typescript.autocompleteParens": boolean
2323
"atom-typescript.includeCompletionsForModuleExports": boolean
24+
"atom-typescript.quotePreference": "auto" | "double" | "single"
2425
"atom-typescript.tsdkPath": string
2526
"atom-typescript.ignoredDiagnosticCodes": string[]
2627
"atom-typescript.ignoreUnusedSuggestionDiagnostics": boolean
@@ -54,6 +55,7 @@ declare module "atom" {
5455
sigHelpDisplayOnChange: boolean
5556
autocompleteParens: boolean
5657
includeCompletionsForModuleExports: boolean
58+
quotePreference: "auto" | "double" | "single"
5759
tsdkPath: string
5860
ignoredDiagnosticCodes: string[]
5961
ignoreUnusedSuggestionDiagnostics: boolean

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,16 @@
169169
"default": false,
170170
"order": 66
171171
},
172+
"quotePreference": {
173+
"type": "string",
174+
"enum": [
175+
"auto",
176+
"double",
177+
"single"
178+
],
179+
"default": "auto",
180+
"order": 67
181+
},
172182
"tsdkPath": {
173183
"title": "Path to default TypeScript SDK",
174184
"description": "TypeScript SDK found at the specified path will be preferred over the bundled one if TypeScript is not installed in node_modules as a project dependency. Ignored when empty",

0 commit comments

Comments
 (0)