Replace call to deprecated workspace.openSync with workspace.open