Skip to content

Commit 0f6eb77

Browse files
authored
Update setting wording (#201)
* Update setting wording * Update setting wording * Update setting wording * Change reveal to show
1 parent c7b53e4 commit 0f6eb77

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,10 +1351,11 @@
13511351
"default": true,
13521352
"markdownDescription": "Create or update `launch.json` and `tasks.json` with the Debug Adapter configuration of the CMSIS solution project. When disabled, the files `launch.json` and `tasks.json` are no longer modified. (Note: also available in Manage Solution Settings dialog)."
13531353
},
1354-
"cmsis-csolution.autoRevealSolutionOutline": {
1354+
"cmsis-csolution.autoShowCMSISView": {
13551355
"type": "boolean",
13561356
"default": true,
1357-
"description": "Automatically reveal the CMSIS Solution Outline view when a solution is loaded."
1357+
"title": "Show CMSIS View",
1358+
"description": "Automatically shows the CMSIS view in the Side Bar when a CMSIS solution is loaded."
13581359
},
13591360
"cmsis-csolution.probe-id": {
13601361
"type": "string",

src/manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const UV2CSOLUTION_PATH_ENV_VAR = 'UV2CSOLUTION_PATH';
4242
export const CONFIG_DOWNLOAD_MISSING_PACKS = 'downloadPacks';
4343
export const OUTPUT_DIRECTORY = 'outputDirectory';
4444
export const CONFIG_AUTO_DEBUG_LAUNCH = 'autoDebugLaunch';
45-
export const CONFIG_AUTO_REVEAL_SOLUTION_OUTLINE = 'autoRevealSolutionOutline';
45+
export const CONFIG_AUTO_SHOW_CMSIS_VIEW = 'autoShowCMSISView';
4646
export const CONFIG_BUILD_OUTPUT_VERBOSITY = 'buildOutputVerbosity';
4747
export const MANAGE_COMPONENTS_PACKS_COMMAND_ID = `${PACKAGE_NAME}.manageComponentsPacks`;
4848
export const MERGE_FILE_COMMAND_ID = `${PACKAGE_NAME}.mergeFile`;

src/views/solution-outline/solution-outline.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { COutlineItem } from './tree-structure/solution-outline-item';
2727
import { csolutionFactory } from '../../solutions/csolution.factory';
2828
import { TreeViewFileDecorationProvider } from './treeview-decoration-provider';
2929
import { configurationProviderFactory, MockConfigurationProvider } from '../../vscode-api/configuration-provider.factories';
30-
import { CONFIG_AUTO_REVEAL_SOLUTION_OUTLINE } from '../../manifest';
30+
import { CONFIG_AUTO_SHOW_CMSIS_VIEW } from '../../manifest';
3131

3232
describe('SolutionOutlineView', () => {
3333
let mockTreeViewProvider: TreeViewProvider<COutlineItem>;
@@ -248,7 +248,7 @@ describe('SolutionOutlineView', () => {
248248
getCsolution: jest.fn().mockReturnValue(csolutionFactory()),
249249
});
250250
configurationProvider = configurationProviderFactory({
251-
[CONFIG_AUTO_REVEAL_SOLUTION_OUTLINE]: false,
251+
[CONFIG_AUTO_SHOW_CMSIS_VIEW]: false,
252252
});
253253
const view = new SolutionOutlineView(
254254
mockSolutionManager,

src/views/solution-outline/solution-outline.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import * as vscode from 'vscode';
18-
import { CONFIG_AUTO_REVEAL_SOLUTION_OUTLINE, PACKAGE_NAME } from '../../manifest';
18+
import { CONFIG_AUTO_SHOW_CMSIS_VIEW, PACKAGE_NAME } from '../../manifest';
1919
import { SolutionLoadState, SolutionLoadStateChangeEvent, SolutionManager } from '../../solutions/solution-manager';
2020
import { TreeViewProvider } from './treeview-provider';
2121
import { CsolutionGlobalState, GlobalState } from '../../vscode-api/global-state';
@@ -62,7 +62,7 @@ export class SolutionOutlineView {
6262
this.solutionPath = e.newState.solutionPath;
6363
if (
6464
e.newState.solutionPath &&
65-
this.configurationProvider.getConfigVariableOrDefault<boolean>(CONFIG_AUTO_REVEAL_SOLUTION_OUTLINE, true)
65+
this.configurationProvider.getConfigVariableOrDefault<boolean>(CONFIG_AUTO_SHOW_CMSIS_VIEW, true)
6666
) {
6767
vscode.commands.executeCommand(`${SolutionOutlineView.treeViewId}.open`, { preserveFocus: true });
6868
}

0 commit comments

Comments
 (0)