Skip to content

Commit

Permalink
fix: remove unneccessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jun 19, 2024
1 parent fc02c69 commit 704a4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function registerServices (newServices: monaco.editor.IEditorOverrideServ
}
}

export async function generateAndInitializeWorkspace (workspaceFile = monaco.Uri.file('/workspace.code-workspace'), label?: string): Promise<IWorkspaceProvider> {
export function generateAndInitializeWorkspace (workspaceFile = monaco.Uri.file('/workspace.code-workspace'), label?: string): IWorkspaceProvider {
registerFile(new RegisteredMemoryFile(workspaceFile, JSON.stringify(<IStoredWorkspace>{
folders: [{
path: '/tmp/project'
Expand Down Expand Up @@ -129,7 +129,7 @@ export async function initialize (constructionOptions: IWorkbenchConstructionOpt
if (constructionOptions.workspaceProvider == null) {
constructionOptions = {
...constructionOptions,
workspaceProvider: await generateAndInitializeWorkspace()
workspaceProvider: generateAndInitializeWorkspace()
}
}

Expand Down

0 comments on commit 704a4c2

Please sign in to comment.