Skip to content

Commit 1392b9c

Browse files
committed
feat: change default location of configuration files
1 parent 396dda9 commit 1392b9c

4 files changed

Lines changed: 14 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
## 0.1.1 - 2026-04-22
44
### Changed
55
- Lowered the minimum supported VS Code version to 1.105.0
6+
7+
## 0.1.2 - 2026-05-15
8+
### Changed
9+
- Changed the default manifest and debug templates location to core/embed/xtask/tf-tools

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
"properties": {
214214
"tfTools.manifestPath": {
215215
"type": "string",
216-
"default": "core/embed/.tf-tools/manifest.yaml",
216+
"default": "core/embed/xtask/tf-tools/manifest.yaml",
217217
"description": "(Trezor) Path to the tf-tools manifest file, relative to the workspace root.",
218218
"scope": "resource"
219219
},
@@ -272,8 +272,8 @@
272272
},
273273
"tfTools.debug.templatesPath": {
274274
"type": "string",
275-
"default": "core/embed/.tf-tools/debug",
276-
"description": "(Trezor) Path to the directory containing debugger template files (JSONC). Relative to the workspace root. Defaults to 'core/embed/.tf-tools/debug'.",
275+
"default": "core/embed/xtask/tf-tools/debug",
276+
"description": "(Trezor) Path to the directory containing debugger template files (JSONC). Relative to the workspace root. Defaults to 'core/embed/xtask/tf-tools/debug'.",
277277
"scope": "resource"
278278
}
279279
}

specs/product-spec.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ At a high level, the settings fall into three groups:
354354

355355
### Workspace Path Settings
356356

357-
- `tfTools.manifestPath`: string, default `core/embed/.tf-tools/manifest.yaml`. Path to the manifest file, relative to the workspace root.
357+
- `tfTools.manifestPath`: string, default `core/embed/xtask/tf-tools/manifest.yaml`. Path to the manifest file, relative to the workspace root.
358358
- `tfTools.cargoWorkspacePath`: string, default `core/embed`. Path to the cargo workspace used for build-related tasks, relative to the workspace root. If the setting is cleared, the workspace root is used.
359359
- `tfTools.artifactsPath`: string, default `core/build-xtask/artifacts`. Absolute or workspace-relative path to the build artifacts directory. If the setting is cleared, artifact-based IntelliSense resolution is disabled.
360-
- `tfTools.debug.templatesPath`: string, default `core/embed/.tf-tools/debug`. Path to the directory that contains debug template files, relative to the workspace root unless given as an absolute path.
360+
- `tfTools.debug.templatesPath`: string, default `core/embed/xtask/tf-tools/debug`. Path to the directory that contains debug template files, relative to the workspace root unless given as an absolute path.
361361

362362
### Visibility Settings
363363

@@ -1006,7 +1006,7 @@ Collection requirements:
10061006
At a high level, the manifest structure looks like this:
10071007

10081008
```text
1009-
core/embed/.tf-tools/manifest.yaml
1009+
core/embed/xtask/tf-tools/manifest.yaml
10101010
├── models
10111011
│ └── [model]
10121012
├── targets

src/workspace/settings.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import * as path from "path";
33

44
/**
55
* Returns the manifest path setting for the given workspace folder, resolved
6-
* to an absolute URI. Falls back to `core/embed/.tf-tools/manifest.yaml`
6+
* to an absolute URI. Falls back to `core/embed/xtask/tf-tools/manifest.yaml`
77
* under the workspace root.
88
*/
99
export function resolveManifestUri(
1010
workspaceFolder: vscode.WorkspaceFolder
1111
): vscode.Uri {
1212
const cfg = vscode.workspace.getConfiguration("tfTools", workspaceFolder.uri);
13-
const relative: string = cfg.get<string>("manifestPath") || "core/embed/.tf-tools/manifest.yaml";
13+
const relative: string = cfg.get<string>("manifestPath") || "core/embed/xtask/tf-tools/manifest.yaml";
1414
return vscode.Uri.joinPath(workspaceFolder.uri, relative);
1515
}
1616

@@ -111,14 +111,14 @@ export function readExcludedFilesSettings(
111111
* Returns the resolved absolute path to the debug templates directory for the
112112
* given workspace folder. Uses `tfTools.debug.templatesPath` when set (resolved
113113
* relative to the workspace root when it is not an absolute path); falls back to
114-
* the default `"core/embed/.tf-tools/debug"` joined to the workspace root.
114+
* the default `"core/embed/xtask/tf-tools/debug"` joined to the workspace root.
115115
*/
116116
export function resolveDebugTemplatesPath(
117117
workspaceFolder: vscode.WorkspaceFolder
118118
): string {
119119
const cfg = vscode.workspace.getConfiguration("tfTools", workspaceFolder.uri);
120120
const value: string | undefined = cfg.get<string>("debug.templatesPath");
121-
const relative = value && value.trim() ? value.trim() : "core/embed/.tf-tools/debug";
121+
const relative = value && value.trim() ? value.trim() : "core/embed/xtask/tf-tools/debug";
122122
if (path.isAbsolute(relative)) {
123123
return relative;
124124
}

0 commit comments

Comments
 (0)