introduce DebugConfigurationProvider; fixes #32086

This commit is contained in:
Andre Weinand
2017-08-16 16:57:10 +02:00
parent 9c531879fc
commit 0f9d677850
10 changed files with 280 additions and 38 deletions

View File

@@ -110,18 +110,23 @@ suite('Debug - Adapter', () => {
});
test('initial config file content', () => {
adapter.getInitialConfigurationContent(null).then(content => {
const expected = ['{',
' "version": "0.2.0",',
' "configurations": [',
' {',
' "name": "Mock-Debug",',
' "type": "mock",',
' "request": "launch",',
' "program": "readme.md"',
' }',
' ]',
'}'].join('\n');
const expected = ['{',
' // Use IntelliSense to learn about possible attributes.',
' // Hover to view descriptions of existing attributes.',
' // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387',
' "version": "0.2.0",',
' "configurations": [',
' {',
' "name": "Mock-Debug",',
' "type": "mock",',
' "request": "launch",',
' "program": "readme.md"',
' }',
' ]',
'}'].join('\n');
return adapter.getInitialConfigurationContent(null).then(content => {
assert.equal(content, expected);
}, err => assert.fail());
});