mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IJPL-172897 Rename EelDescriptor.{upgrade,toEelApi}
According to feedback, the name `upgrade` confuses people. We refused `getEelApi` because this call usually implies a getter, and a getter usually implies some lightweight operation. We refused `make`, `convert`, `get` and other short methods because they're as confusing as `upgrade`. GitOrigin-RevId: 56adf5362f93bc4f98954db79c039e5e898b4550
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a404ba9362
commit
3fcec7e44c
@@ -94,7 +94,7 @@ internal class CliBasedHatchService private constructor(
|
||||
|
||||
|
||||
override suspend fun createNewProject(projectName: String): PyResult<ProjectStructure> {
|
||||
val eelApi = workingDirectoryPath.getEelDescriptor().upgrade()
|
||||
val eelApi = workingDirectoryPath.getEelDescriptor().toEelApi()
|
||||
val tempDir = eelApi.fs.createTemporaryDirectory(EelFileSystemApi.CreateTemporaryEntryOptions.Builder().build()).getOr { failure ->
|
||||
return Result.failure(FileSystemOperationHatchError(failure.error))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user