mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Add doNotAddAttributeQuotes setting to disable automatic quotes
This commit is contained in:
@@ -188,6 +188,12 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"description": "%html.autoClosingTags%"
|
"description": "%html.autoClosingTags%"
|
||||||
},
|
},
|
||||||
|
"html.doNotAddAttributeQuotes": {
|
||||||
|
"type": "boolean",
|
||||||
|
"scope": "resource",
|
||||||
|
"default": false,
|
||||||
|
"description": "%html.doNotAddAttributeQuotes%"
|
||||||
|
},
|
||||||
"html.hover.documentation": {
|
"html.hover.documentation": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"scope": "resource",
|
"scope": "resource",
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
"html.validate.scripts": "Controls whether the built-in HTML language support validates embedded scripts.",
|
"html.validate.scripts": "Controls whether the built-in HTML language support validates embedded scripts.",
|
||||||
"html.validate.styles": "Controls whether the built-in HTML language support validates embedded styles.",
|
"html.validate.styles": "Controls whether the built-in HTML language support validates embedded styles.",
|
||||||
"html.autoClosingTags": "Enable/disable autoclosing of HTML tags.",
|
"html.autoClosingTags": "Enable/disable autoclosing of HTML tags.",
|
||||||
|
"html.doNotAddAttributeQuotes": "Controls whether quotes are automatically added when completing an attribute.",
|
||||||
"html.mirrorCursorOnMatchingTag": "Enable/disable mirroring cursor on matching HTML tag.",
|
"html.mirrorCursorOnMatchingTag": "Enable/disable mirroring cursor on matching HTML tag.",
|
||||||
"html.mirrorCursorOnMatchingTagDeprecationMessage": "Deprecated in favor of `editor.linkedEditing`",
|
"html.mirrorCursorOnMatchingTagDeprecationMessage": "Deprecated in favor of `editor.linkedEditing`",
|
||||||
"html.hover.documentation": "Show tag and attribute documentation in hover.",
|
"html.hover.documentation": "Show tag and attribute documentation in hover.",
|
||||||
|
|||||||
@@ -26,6 +26,10 @@ export function getHTMLMode(htmlLanguageService: HTMLLanguageService, workspace:
|
|||||||
if (doAutoComplete) {
|
if (doAutoComplete) {
|
||||||
options.hideAutoCompleteProposals = true;
|
options.hideAutoCompleteProposals = true;
|
||||||
}
|
}
|
||||||
|
let doNotAddAttributeQuotes = settings && settings.html && settings.html.doNotAddAttributeQuotes;
|
||||||
|
if (doNotAddAttributeQuotes) {
|
||||||
|
options.doNotAddAttributeQuotes = true;
|
||||||
|
}
|
||||||
|
|
||||||
const htmlDocument = htmlDocuments.get(document);
|
const htmlDocument = htmlDocuments.get(document);
|
||||||
let completionList = htmlLanguageService.doComplete2(document, position, htmlDocument, documentContext, options);
|
let completionList = htmlLanguageService.doComplete2(document, position, htmlDocument, documentContext, options);
|
||||||
|
|||||||
Reference in New Issue
Block a user