Drop workspaceService.hasWorkspaceFolders#14100
Conversation
Codecov Report
@@ Coverage Diff @@
## main #14100 +/- ##
==========================================
- Coverage 59.77% 59.69% -0.08%
==========================================
Files 702 702
Lines 38868 38868
Branches 5618 5620 +2
==========================================
- Hits 23232 23201 -31
- Misses 14426 14447 +21
- Partials 1210 1220 +10
Continue to review full report at Codecov.
|
To stop ignoring warnings from the usage below:
`workspaceService.hasWorkspaceFolders`
We replaced all of these usage with:
`(this.workspaceService.workspaceFolders || []).length > 0`
|
Kudos, SonarCloud Quality Gate passed!
|
karthiknadig
left a comment
There was a problem hiding this comment.
@FATESAIKOU Can you change this so that this.workspaceService.workspaceFolders set to [] by default. That way we can avoid doing has check.
|
Hi @FATESAIKOU, could you update your PR with the latest code in Thanks! |

To stop ignoring warnings from the usage below:
workspaceService.hasWorkspaceFoldersWe replaced all of these usage with:
(this.workspaceService.workspaceFolders || []).length > 0For #6237
package-lock.jsonhas been regenerated by runningnpm install(if dependencies have changed).