Skip to content

Commit

Permalink
Merge pull request #980 from bridge-core/main
Browse files Browse the repository at this point in the history
Update dev to 2.6.5
  • Loading branch information
outercloudstudio authored Oct 16, 2023
2 parents 7851a1a + 9ae2445 commit f6faa09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bridge",
"version": "2.6.4",
"version": "2.6.5",
"private": true,
"scripts": {
"dev": "vite",
Expand Down
7 changes: 6 additions & 1 deletion src/components/Editors/Text/TextTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ export class TextTab extends FileTab {
const file = await this.fileHandle.getFile()
const fileContent = await file.text()
// This for some reason fixes monaco suggesting the wrong path for quickfixes #932
const uri = Uri.file(this.getPath().replace('/BP/', '/bp/'))
const filePath = this.getPath()
const uri = Uri.file(
filePath.endsWith('.ts')
? filePath.replace('/BP/', '/bp/')
: filePath
)

this.editorModel = markRaw(
editor.getModel(uri) ??
Expand Down

0 comments on commit f6faa09

Please sign in to comment.