mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
#19733 Default configurations
- Define a new extension point `configurationDefaults` for contributing default language specific editor settings
This commit is contained in:
20
extensions/vscode-api-tests/src/configuration.test.ts
Normal file
20
extensions/vscode-api-tests/src/configuration.test.ts
Normal 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
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user