Given this snippet, generating a schema (xsd. or DTD) creates an empty file, regardless of the binding mechanism:
[Trace - 11:47:42 AM] Sending request 'textDocument/codeAction - (239)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 0
}
},
"context": {
"diagnostics": []
}
}
[Trace - 11:47:42 AM] Received request 'workspace/configuration - (105)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.insertSpaces"
},
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.tabSize"
}
]
}
[Trace - 11:47:42 AM] Sending response 'workspace/configuration - (105)'. Processing request took 1ms
Result: [
false,
4
]
[Trace - 11:47:42 AM] Received response 'textDocument/codeAction - (239)' in 6ms.
Result: []
[Trace - 11:47:42 AM] Sending request 'textDocument/documentLink - (240)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
}
}
[Trace - 11:47:42 AM] Received response 'textDocument/documentLink - (240)' in 1ms.
Result: []
[Trace - 11:47:42 AM] Sending request 'textDocument/foldingRange - (241)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
}
}
[Trace - 11:47:42 AM] Received response 'textDocument/foldingRange - (241)' in 1ms.
Result: [
{
"startLine": 1,
"endLine": 2
}
]
[Trace - 11:47:44 AM] Sending request 'textDocument/hover - (242)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"position": {
"line": 2,
"character": 0
}
}
[Trace - 11:47:44 AM] Received response 'textDocument/hover - (242)' in 1ms.
No result returned.
[Trace - 11:47:44 AM] Sending request 'textDocument/hover - (243)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"position": {
"line": 1,
"character": 2
}
}
[Trace - 11:47:44 AM] Received response 'textDocument/hover - (243)' in 1ms.
No result returned.
[Trace - 11:47:44 AM] Sending request 'textDocument/codeAction - (244)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"message": "No grammar constraints (DTD or XML Schema).",
"code": "NoGrammarConstraints",
"severity": 4,
"source": "xml"
}
],
"only": [
"quickfix"
]
}
}
[Trace - 11:47:44 AM] Received request 'workspace/configuration - (106)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.insertSpaces"
},
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.tabSize"
}
]
}
[Trace - 11:47:44 AM] Sending response 'workspace/configuration - (106)'. Processing request took 0ms
Result: [
false,
4
]
[Trace - 11:47:44 AM] Received response 'textDocument/codeAction - (244)' in 2ms.
Result: [
{
"title": "Generate 'foo.xsd' and bind with xsi:noNamespaceSchemaLocation",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXSINoNamespaceSchemaCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
},
{
"title": "Generate 'foo.xsd' and bind with xml-model",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXMLModelWithXSDCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
},
{
"title": "Generate 'foo.dtd' and bind with DOCTYPE",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateDocTypeCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.dtd"
}
},
{
"title": "Generate 'foo.dtd' and bind with xml-model",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXMLModelWithDTDCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.dtd"
}
},
{
"title": "Bind to existing grammar/schema",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"command": {
"title": "Bind to existing grammar/schema",
"command": "xml.open.binding.wizard",
"arguments": [
"file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
]
}
}
]
[Trace - 11:47:45 AM] Sending request 'textDocument/documentHighlight - (245)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"position": {
"line": 1,
"character": 2
}
}
[Trace - 11:47:45 AM] Received response 'textDocument/documentHighlight - (245)' in 2ms.
Result: [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"kind": 2
},
{
"range": {
"start": {
"line": 3,
"character": 2
},
"end": {
"line": 3,
"character": 5
}
},
"kind": 2
}
]
[Trace - 11:47:45 AM] Sending request 'textDocument/codeAction - (246)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"range": {
"start": {
"line": 1,
"character": 2
},
"end": {
"line": 1,
"character": 2
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"message": "No grammar constraints (DTD or XML Schema).",
"code": "NoGrammarConstraints",
"severity": 4,
"source": "xml"
}
]
}
}
[Trace - 11:47:45 AM] Received request 'workspace/configuration - (107)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.insertSpaces"
},
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.tabSize"
}
]
}
[Trace - 11:47:45 AM] Sending response 'workspace/configuration - (107)'. Processing request took 0ms
Result: [
false,
4
]
[Trace - 11:47:45 AM] Received response 'textDocument/codeAction - (246)' in 2ms.
Result: [
{
"title": "Generate 'foo.xsd' and bind with xsi:noNamespaceSchemaLocation",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXSINoNamespaceSchemaCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
},
{
"title": "Generate 'foo.xsd' and bind with xml-model",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXMLModelWithXSDCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
},
{
"title": "Generate 'foo.dtd' and bind with DOCTYPE",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateDocTypeCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.dtd"
}
},
{
"title": "Generate 'foo.dtd' and bind with xml-model",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXMLModelWithDTDCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.dtd"
}
},
{
"title": "Bind to existing grammar/schema",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"command": {
"title": "Bind to existing grammar/schema",
"command": "xml.open.binding.wizard",
"arguments": [
"file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
]
}
}
]
[Trace - 11:47:47 AM] Sending request 'textDocument/definition - (247)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"position": {
"line": 1,
"character": 2
}
}
[Trace - 11:47:47 AM] Received response 'textDocument/definition - (247)' in 0ms.
Result: [
{
"originSelectionRange": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"targetUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"targetRange": {
"start": {
"line": 3,
"character": 2
},
"end": {
"line": 3,
"character": 5
}
},
"targetSelectionRange": {
"start": {
"line": 3,
"character": 2
},
"end": {
"line": 3,
"character": 5
}
}
}
]
[Trace - 11:47:47 AM] Sending request 'textDocument/codeAction - (248)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"range": {
"start": {
"line": 1,
"character": 2
},
"end": {
"line": 1,
"character": 2
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"message": "No grammar constraints (DTD or XML Schema).",
"code": "NoGrammarConstraints",
"severity": 4,
"source": "xml"
}
]
}
}
[Trace - 11:47:47 AM] Received request 'workspace/configuration - (108)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.insertSpaces"
},
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.tabSize"
}
]
}
[Trace - 11:47:47 AM] Sending response 'workspace/configuration - (108)'. Processing request took 0ms
Result: [
false,
4
]
[Trace - 11:47:47 AM] Received response 'textDocument/codeAction - (248)' in 2ms.
Result: [
{
"title": "Generate 'foo.xsd' and bind with xsi:noNamespaceSchemaLocation",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXSINoNamespaceSchemaCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
},
{
"title": "Generate 'foo.xsd' and bind with xml-model",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXMLModelWithXSDCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
},
{
"title": "Generate 'foo.dtd' and bind with DOCTYPE",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateDocTypeCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.dtd"
}
},
{
"title": "Generate 'foo.dtd' and bind with xml-model",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXMLModelWithDTDCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.dtd"
}
},
{
"title": "Bind to existing grammar/schema",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"command": {
"title": "Bind to existing grammar/schema",
"command": "xml.open.binding.wizard",
"arguments": [
"file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
]
}
}
]
[Trace - 11:47:50 AM] Sending request 'codeAction/resolve - (249)'.
Params: {
"title": "Generate 'foo.xsd' and bind with xml-model",
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXMLModelWithXSDCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
},
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"message": "No grammar constraints (DTD or XML Schema).",
"code": "NoGrammarConstraints",
"severity": 4,
"source": "xml"
}
]
}
[Trace - 11:47:50 AM] Received response 'codeAction/resolve - (249)' in 5ms.
Result: {
"title": "Generate 'foo.xsd' and bind with xml-model",
"kind": "quickfix",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 1
},
"end": {
"line": 1,
"character": 4
}
},
"severity": 4,
"code": "NoGrammarConstraints",
"source": "xml",
"message": "No grammar constraints (DTD or XML Schema)."
}
],
"edit": {
"documentChanges": [
{
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd",
"options": {
"overwrite": false,
"ignoreIfExists": true
},
"kind": "create"
},
{
"textDocument": {
"version": 0,
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
},
"edits": [
{
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 0
}
},
"newText": "\n"
}
]
},
{
"textDocument": {
"version": 39,
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"edits": [
{
"range": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 1,
"character": 0
}
},
"newText": "<?xml-model href=\"foo.xsd\"?>\n"
}
]
}
]
},
"data": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"participantId": "org.eclipse.lemminx.extensions.contentmodel.participants.codeactions.nogrammarconstraints.GenerateXMLModelWithXSDCodeActionResolver",
"file": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
}
[Trace - 11:47:50 AM] Sending notification 'textDocument/didOpen'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd",
"languageId": "xml",
"version": 5,
"text": ""
}
}
[Trace - 11:47:50 AM] Sending notification 'textDocument/didChange'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"version": 40
},
"contentChanges": [
{
"range": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 1,
"character": 0
}
},
"rangeLength": 0,
"text": "<?xml-model href=\"foo.xsd\"?>\n"
}
]
}
[Trace - 11:47:50 AM] Sending notification 'textDocument/didChange'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd",
"version": 6
},
"contentChanges": [
{
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 0
}
},
"rangeLength": 0,
"text": "\n"
}
]
}
[Trace - 11:47:50 AM] Sending notification 'textDocument/didChange'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd",
"version": 7
},
"contentChanges": [
{
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 1,
"character": 0
}
},
"rangeLength": 1,
"text": ""
}
]
}
[Trace - 11:47:50 AM] Sending notification 'textDocument/didSave'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
}
[Trace - 11:47:50 AM] Sending notification 'textDocument/didClose'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
}
[Trace - 11:47:50 AM] Sending notification 'textDocument/didSave'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
}
}
[Trace - 11:47:50 AM] Sending request 'textDocument/codeAction - (250)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"range": {
"start": {
"line": 2,
"character": 2
},
"end": {
"line": 2,
"character": 2
}
},
"context": {
"diagnostics": []
}
}
[Trace - 11:47:50 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd",
"diagnostics": []
}
[Trace - 11:47:50 AM] Received request 'workspace/configuration - (109)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.insertSpaces"
},
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.tabSize"
}
]
}
[Trace - 11:47:50 AM] Sending response 'workspace/configuration - (109)'. Processing request took 0ms
Result: [
false,
4
]
[Trace - 11:47:50 AM] Received response 'textDocument/codeAction - (250)' in 3ms.
Result: []
[Trace - 11:47:50 AM] Sending request 'textDocument/foldingRange - (251)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
}
}
[Trace - 11:47:50 AM] Received response 'textDocument/foldingRange - (251)' in 1ms.
Result: [
{
"startLine": 2,
"endLine": 3
}
]
[Trace - 11:47:50 AM] Sending request 'textDocument/codeAction - (252)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"range": {
"start": {
"line": 2,
"character": 2
},
"end": {
"line": 2,
"character": 2
}
},
"context": {
"diagnostics": []
}
}
[Trace - 11:47:50 AM] Received request 'workspace/configuration - (110)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.insertSpaces"
},
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.tabSize"
}
]
}
[Trace - 11:47:50 AM] Sending response 'workspace/configuration - (110)'. Processing request took 0ms
Result: [
false,
4
]
[Trace - 11:47:50 AM] Received response 'textDocument/codeAction - (252)' in 1ms.
Result: []
[Trace - 11:47:50 AM] Sending request 'textDocument/documentSymbol - (253)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
}
}
[Trace - 11:47:50 AM] Received response 'textDocument/documentSymbol - (253)' in 1ms.
Result: [
{
"name": "Grammars",
"kind": 2,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 1
}
},
"selectionRange": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 1
}
},
"children": [
{
"name": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd",
"kind": 1,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 1
}
},
"selectionRange": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 1
}
},
"children": [
{
"name": "Binding: xml-model",
"kind": 7,
"range": {
"start": {
"line": 1,
"character": 17
},
"end": {
"line": 1,
"character": 26
}
},
"selectionRange": {
"start": {
"line": 1,
"character": 17
},
"end": {
"line": 1,
"character": 26
}
}
},
{
"name": "Cache: false",
"kind": 7,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 1
}
},
"selectionRange": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 1
}
}
}
]
}
]
},
{
"name": "xml",
"kind": 7,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 38
}
},
"selectionRange": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 38
}
},
"children": []
},
{
"name": "xml-model",
"kind": 7,
"range": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 1,
"character": 28
}
},
"selectionRange": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 1,
"character": 28
}
},
"children": []
},
{
"name": "foo",
"kind": 8,
"range": {
"start": {
"line": 2,
"character": 0
},
"end": {
"line": 4,
"character": 6
}
},
"selectionRange": {
"start": {
"line": 2,
"character": 0
},
"end": {
"line": 4,
"character": 6
}
},
"children": [
{
"name": "bar",
"kind": 8,
"range": {
"start": {
"line": 3,
"character": 1
},
"end": {
"line": 3,
"character": 31
}
},
"selectionRange": {
"start": {
"line": 3,
"character": 1
},
"end": {
"line": 3,
"character": 31
}
},
"children": []
}
]
}
]
[Trace - 11:47:50 AM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {
"changes": [
{
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd",
"type": 1
}
]
}
[Trace - 11:47:50 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"diagnostics": []
}
[Trace - 11:47:50 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"diagnostics": []
}
[Trace - 11:47:51 AM] Sending request 'textDocument/codeAction - (254)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"range": {
"start": {
"line": 2,
"character": 2
},
"end": {
"line": 2,
"character": 2
}
},
"context": {
"diagnostics": []
}
}
[Trace - 11:47:51 AM] Received request 'workspace/configuration - (111)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.insertSpaces"
},
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.tabSize"
}
]
}
[Trace - 11:47:51 AM] Sending response 'workspace/configuration - (111)'. Processing request took 0ms
Result: [
false,
4
]
[Trace - 11:47:51 AM] Received response 'textDocument/codeAction - (254)' in 2ms.
Result: []
[Trace - 11:47:51 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"diagnostics": []
}
[Trace - 11:47:51 AM] Sending request 'textDocument/documentLink - (255)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
}
}
[Trace - 11:47:51 AM] Received response 'textDocument/documentLink - (255)' in 1ms.
Result: [
{
"range": {
"start": {
"line": 1,
"character": 18
},
"end": {
"line": 1,
"character": 25
}
},
"target": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xsd"
}
]
[Trace - 11:47:59 AM] Sending request 'textDocument/codeAction - (256)'.
Params: {
"textDocument": {
"uri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml"
},
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 5,
"character": 0
}
},
"context": {
"diagnostics": []
}
}
[Trace - 11:47:59 AM] Received request 'workspace/configuration - (112)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.insertSpaces"
},
{
"scopeUri": "file:///Users/fbricon/Dev/souk/xmlstuff/foo.xml",
"section": "xml.format.tabSize"
}
]
}
[Trace - 11:47:59 AM] Sending response 'workspace/configuration - (112)'. Processing request took 1ms
Result: [
false,
4
]
[Trace - 11:47:59 AM] Received response 'textDocument/codeAction - (256)' in 1ms.
Result: []
Given this snippet, generating a schema (xsd. or DTD) creates an empty file, regardless of the binding mechanism:
I tested both 0.22.0 and today's pre-release 0.23.x build, on VS Code 1.73.1
Logs: