Skip to content

Commit 0c29a35

Browse files
authored
feat: add support for extension 'signageos.signageos-vscode-sops' (#123)
1 parent 0955a75 commit 0c29a35

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

docs/src/content/docs/reference/Settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ List of extensions that should not be configured automatically.
8282
- `Dart-Code.dart-code`
8383
- `dart-code.flutter`
8484
- `ziglang.vscode-zig`
85+
- `signageos.signageos-vscode-sops`
8586

8687
---
8788

docs/src/content/docs/reference/Supported-extensions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ If you want to configure it manually, search for
3333
| [dart](https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code) | `dart.sdkPath` | Does not work with shims or symlinks |
3434
| [flutter](https://marketplace.visualstudio.com/items?itemName=dart-code.flutter) | `dart.flutterSdkPath` | Does not work with shims or symlinks |
3535
| [zig](https://marketplace.visualstudio.com/items?itemName=ziglang.vscode-zig) | `zig.path`, `zig.zls.path` (install [zls](https://mise.jdx.dev/lang/zig.html#zig-language-server) with `mise`) | |
36+
| [sops](https://marketplace.visualstudio.com/items?itemName=signageos.signageos-vscode-sops) | `sops.binPath` | |
3637

3738
Extensions which have built-in support for `mise`:
3839

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@
152152
"pgourlain.erlang",
153153
"Dart-Code.dart-code",
154154
"dart-code.flutter",
155-
"ziglang.vscode-zig"
155+
"ziglang.vscode-zig",
156+
"signageos.signageos-vscode-sops"
156157
]
157158
},
158159
"markdownDescription": "List of extensions that should not be configured automatically."

src/utils/supportedExtensions.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,25 @@ export const SUPPORTED_EXTENSIONS: Array<ConfigurableExtension> = [
389389
});
390390
},
391391
},
392+
{
393+
toolNames: ["sops"],
394+
extensionId: "signageos.signageos-vscode-sops",
395+
generateConfiguration: async ({
396+
miseService,
397+
tool,
398+
miseConfig,
399+
useShims,
400+
useSymLinks,
401+
}) => {
402+
return configureSimpleExtension(miseService, {
403+
configKey: "sops.binPath",
404+
useShims,
405+
useSymLinks,
406+
tool,
407+
miseConfig,
408+
});
409+
},
410+
},
392411
];
393412

394413
export const CONFIGURABLE_EXTENSIONS_BY_TOOL_NAME = new Map<

0 commit comments

Comments
 (0)