Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Fix 'Debug: Start Without Debugging' to use current file and include buildFlags/args #2123

Merged
merged 3 commits into from
Nov 21, 2018
Merged

Fix 'Debug: Start Without Debugging' to use current file and include buildFlags/args #2123

merged 3 commits into from
Nov 21, 2018

Conversation

brycekahle
Copy link
Contributor

@brycekahle brycekahle commented Nov 13, 2018

Include buildFlags and args when running without debugging. Use current file (if there is one) when 'running without debugging'.

Fixes #2086 and #2085

@@ -209,6 +209,7 @@ interface LaunchRequestArguments extends DebugProtocol.LaunchRequestArguments {
dlvToolPath: string;
/** Delve Version */
apiVersion: number;
currentFile: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramya-rao-a This was the only way to pass along currentFile, but this is obviously not configuration. Is it OK to not have currentFile in the schema in package.json?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, its ok. In this case, this is an internal implementation. Current file can always be determined by VS Code using the vscode.window.activeTextEditor. It need not be provided by the user

@brycekahle brycekahle changed the title Include buildFlags and args when running without debugging Fix 'Debug: Start Without Debugging' to use current file and include buildFlags/args Nov 13, 2018
@brycekahle
Copy link
Contributor Author

The latest CI failure does not appear to be related.

@ramya-rao-a ramya-rao-a merged commit b04fe03 into microsoft:master Nov 21, 2018
@ramya-rao-a
Copy link
Contributor

Thanks @brycekahle!

@brycekahle brycekahle deleted the fix-start-without-debug branch November 27, 2018 19:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants