Skip to content

JAVAVSCODE-196 Run Configuration section is unavailable in the Explorer panel for non-workspace opened Java files #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

sid-srini
Copy link
Member

Fixes #196

Fixed runConfiguration.ts: initializeRunConfiguration() to search for java files in open editors when no workspace is open.

  1. Checked for non-workspace opened files by testing the validity of vscode.workspace.name AND vscode.workspace.workspaceFile.
  2. Searched for java extension file names in vscode.workspace.textDocuments when no workspace is open.
  3. Fixed RunConfigurationNode.setValue() to invoke WorkspaceConfiguration.update() with configurationTarget = :
    • true: when no workspace is open i.e. user global target;
    • null: otherwise i.e. workspace target.

…er panel for non-workspace opened Java files

Fixed runConfiguration.ts: `initializeRunConfiguration()` to search for java files in open editors when no workspace is open.

1. Checked for non-workspace opened files by testing the validity of `vscode.workspace.name` AND `vscode.workspace.workspaceFile`.
2. Searched for java extension file names in `vscode.workspace.textDocuments` when no workspace is open.
@sid-srini sid-srini closed this Jul 25, 2024
@sid-srini sid-srini deleted the vsc196-show-runConfig-workspace branch July 25, 2024 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant