You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[JAVAVSCODE #196] Run Configuration section is unavailable in the Explorer 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.
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.
Fixes#196
Signed-off-by: Siddharth Srinivasan <[email protected]>
0 commit comments