Skip to content

Commit

Permalink
Allow variable substitution in Dapr tasks.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Hoff <[email protected]>
  • Loading branch information
philliphoff committed May 29, 2024
1 parent 321742f commit 2ac30a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/scaffoldDaprTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export async function scaffoldDaprTasks(context: IActionContext, scaffolder: Sca

const runFilePath = path.join(folder.uri.fsPath, 'dapr.yaml');

const runFilePathString = '$(workspaceFolder)/dapr.yaml';
const runFilePathString = '${workspaceFolder}/dapr.yaml';
const daprTaskType = 'dapr';
const daprConfigType = 'dapr';

Expand Down
4 changes: 2 additions & 2 deletions src/tasks/customExecutionTaskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default class CustomExecutionTaskProvider implements vscode.TaskProvider
task.name,
task.source,
new vscode.CustomExecution(
() => Promise.resolve(
new TaskPseudoterminal((writer, token) => this.callback(task.definition, writer, token)))),
resolvedDefinition => Promise.resolve(
new TaskPseudoterminal((writer, token) => this.callback(resolvedDefinition, writer, token)))),
problemMatchers);

resolvedTask.isBackground = this.isBackgroundTask !== undefined ? this.isBackgroundTask : task.isBackground;
Expand Down

0 comments on commit 2ac30a7

Please sign in to comment.