Skip to content

Commit

Permalink
Fix opening projects with arbitrary name (#8012)
Browse files Browse the repository at this point in the history
related #7973

Fixes opening the projects with names that are not in Upper_Snake_Case.

# Important Notes
https://github.com/enso-org/enso/assets/357683/ea820658-5dee-474a-9dce-201d09796af7
  • Loading branch information
4e6 authored Oct 10, 2023
1 parent bbd1652 commit 11997e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export default function Editor(props: EditorProps) {
},
startup: {
project: project.packageName,
displayedProjectName: project.name,
},
window: {
topBarOffset: `${TOP_BAR_X_OFFSET_PX}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class LocalBackend extends backend.Backend {
jsonAddress: ipWithSocketToAddress(cachedProject.languageServerJsonAddress),
binaryAddress: ipWithSocketToAddress(cachedProject.languageServerBinaryAddress),
organizationId: '',
packageName: cachedProject.projectName,
packageName: cachedProject.projectNormalizedName,
projectId,
state: {
type: backend.ProjectState.opened,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export interface OpenProject {
languageServerJsonAddress: IpWithSocket
languageServerBinaryAddress: IpWithSocket
projectName: ProjectName
projectNormalizedName: string
projectNamespace: string
}

Expand Down

0 comments on commit 11997e9

Please sign in to comment.