Skip to content

Commit

Permalink
Merge pull request #321 from zowe/fixOpenNewFileRegression
Browse files Browse the repository at this point in the history
Fix: regression when opening a new File
  • Loading branch information
DivergentEuropeans authored Feb 17, 2023
2 parents 1df24f5 + 6514b9d commit c553292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Bugfix: Set USS path to correct directory, when opening the directory or file in new browser tab respectively
- Added the feature to copy the line content and copy URL link to open a file at a specific line
- Bugfix: Getting 400 BAD REQUEST in browser when opening the file or dataset in a new browser tab
- Bugfix: When opening New File, editor keeps on using the earlier opened file and its model

## `3.0.0`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,11 +537,10 @@ export class MonacoService implements OnDestroy {
}

generateUri(editorFile: ProjectStructure): string {
// have to use lowercase here!. This is uniquely identify the Editor Models
if(editorFile.isDataset){
return `inmemory://${editorFile.path.toLowerCase()}`;
} else{
return `inmemory://${editorFile.path.toLowerCase()}/${editorFile.name.toLowerCase()}`;
return `inmemory://${editorFile.name.toLowerCase()}/${editorFile.id}`;
}
}

Expand Down

0 comments on commit c553292

Please sign in to comment.