vsc-ext
CI pipeline for VS Code extensions (sops-lens-vsc-ext).Missing scripts are no-ops. `build` maps to whichever script exists —
some VS Code extensions use `compile` (tsc-native) instead of `build`.
Installation
dagger install github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15bEntrypoint
Return Type
VscExt Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
func (m *MyModule) Example() *dagger.VscExt {
return dag.
Vscext()
}@function
def example() -> dagger.VscExt:
return (
dag.vsc_ext()
)@func()
example(): VscExt {
return dag
.vscExt()
}Types
VscExt 🔗
lint() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
lint --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Vscext().
Lint(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.vsc_ext()
.lint(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.vscExt()
.lint(source)
}typecheck() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
typecheck --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Vscext().
Typecheck(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.vsc_ext()
.typecheck(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.vscExt()
.typecheck(source)
}build() 🔗
Run build if defined, else fall back to compile (canonical VS Code ext script).
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
build --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Vscext().
Build(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.vsc_ext()
.build(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.vscExt()
.build(source)
}package() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
package --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Vscext().
Package(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.vsc_ext()
.package(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.vscExt()
.package(source)
}megalint() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
megalint --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Vscext().
Megalint(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.vsc_ext()
.megalint(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.vscExt()
.megalint(source)
}ci() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
ci --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Vscext().
Ci(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.vsc_ext()
.ci(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.vscExt()
.ci(source)
}publishMarketplace() 🔗
Publish to VS Marketplace. Umbrella-only.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| vsceToken | Secret ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
publish-marketplace --source DIR_PATH --vsce-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, vsceToken *dagger.Secret) string {
return dag.
Vscext().
Publishmarketplace(ctx, source, vsceToken)
}@function
async def example(source: dagger.Directory, vscetoken: dagger.Secret) -> str:
return await (
dag.vsc_ext()
.publishmarketplace(source, vscetoken)
)@func()
async example(source: Directory, vsceToken: Secret): Promise<string> {
return dag
.vscExt()
.publishMarketplace(source, vsceToken)
}publishOpenVsx() 🔗
Publish to Open VSX Registry. Umbrella-only.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| ovsxToken | Secret ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/vsc-ext@2bd56fd853ba69f656415285cb4d10d80e4bb15b call \
publish-open-vsx --source DIR_PATH --ovsx-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, ovsxToken *dagger.Secret) string {
return dag.
Vscext().
Publishopenvsx(ctx, source, ovsxToken)
}@function
async def example(source: dagger.Directory, ovsxtoken: dagger.Secret) -> str:
return await (
dag.vsc_ext()
.publishopenvsx(source, ovsxtoken)
)@func()
async example(source: Directory, ovsxToken: Secret): Promise<string> {
return dag
.vscExt()
.publishOpenVsx(source, ovsxToken)
}