Skip to content

Commit

Permalink
fix: create workspace folder in memory filesystem
Browse files Browse the repository at this point in the history
to prevent warn log
  • Loading branch information
Loïc Mangeonjean committed Apr 20, 2023
1 parent 495bc30 commit 177d525
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/service-override/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ let _defaultWorkspaceUri = URI.file('/workspace')
registerServiceInitializeParticipant(async (accessor) => {
const workspaceService = accessor.get(IWorkspaceContextService) as WorkspaceService
workspaceService.acquireInstantiationService(accessor.get(IInstantiationService))
try {
// Create the directory in the memory filesystem to prevent a warn log
await accessor.get(IFileService).createFolder(_defaultWorkspaceUri)
} catch (err) {
// ignore
}
await workspaceService.initialize(<ISingleFolderWorkspaceIdentifier>{
id: generateUuid(),
uri: _defaultWorkspaceUri
Expand Down

0 comments on commit 177d525

Please sign in to comment.