#19733 Default configurations

- Define a new extension point `configurationDefaults` for contributing default language specific editor settings
This commit is contained in:
Sandeep Somavarapu
2017-02-09 00:22:39 +01:00
parent 3ba88b6800
commit b68f3b2f38
4 changed files with 76 additions and 56 deletions

View File

@@ -0,0 +1,20 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as assert from 'assert';
import * as vscode from 'vscode';
suite('Configuration tests', () => {
test('Default configurations', function () {
const defaultLanguageSettings = vscode.workspace.getConfiguration().get('[abcLang]');
assert.deepEqual(defaultLanguageSettings, {
'editor.lineNumbers': 'off',
'editor.tabSize': 2
});
});
});