Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/client/tagClosing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function activateTagClosing(tagProvider: (document: TextDocument, positio
if (!supportedLanguages[document.languageId]) {
return;
}
if (!workspace.getConfiguration(undefined, document.uri).get<boolean>(configName)) {
if (!workspace.getConfiguration().get<boolean>(configName)) {
return;
}
isEnabled = true;
Expand Down
5 changes: 2 additions & 3 deletions src/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ function verifyVMArgs() {
}

function verifyAutoClosing() {
const configXML = workspace.getConfiguration();
const closeTags = configXML.get("xml.completion.autoCloseTags");
const closeBrackets = configXML.get("[xml]")["editor.autoClosingBrackets"];
const closeTags = getXMLConfiguration().get('completion.autoCloseTags');
const closeBrackets = workspace.getConfiguration('editor', { languageId: 'xml' }).get('autoClosingBrackets');
if (closeTags && closeBrackets != "never") {
window.showWarningMessage(
"The [xml].editor.autoClosingBrackets setting conflicts with xml.completion.autoCloseTags. It's recommended to disable it.",
Expand Down