Skip to content

Commit

Permalink
Merge pull request #103 from Settis/workWithUntitledDocs
Browse files Browse the repository at this point in the history
Work with unsaved documents
  • Loading branch information
Settis authored Dec 9, 2023
2 parents 92ab886 + 8b43af9 commit bbcf00c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- disable autocompletion for hex digits
- no more crashes on recovered parse result
- correct handling of using '=' sign in expressions
- work with untitled (unsaved) documents

## [1.3.1] - 2023-07-11

Expand Down
5 changes: 4 additions & 1 deletion server/src/localFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ export function getFolder(uri: string): string {
}

export function unifyUri(uri: string): string {
return URI.file(URI.parse(uri).fsPath).toString(false);
const parsedUri = URI.parse(uri);
if (parsedUri.scheme === 'file')
return URI.file(parsedUri.fsPath).toString(false);
return uri;
}

0 comments on commit bbcf00c

Please sign in to comment.