Skip to content

Commit a64748b

Browse files
authored
Merge pull request #1921 from svdo/1918-fix-getting-started-formatting
Fix #1918: code formatting in Getting Started REPL
2 parents 0df7d74 + a429890 commit a64748b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Changes to Calva.
77
- Calva development: [Use requirements.txt in CI for publishing docs](https://github.com/BetterThanTomorrow/calva/issues/1913)
88
- Bump deps.clj to v1.11.1.1182
99
- Fix: [Drag sexps in value part of doseq sometimes jumps 2 sexps instead of 1](https://github.com/BetterThanTomorrow/calva/issues/1914)
10+
- Fix: [Can't do formatting code from Calva: Fire up the Getting Started REPL on hello_repl.clj](https://github.com/BetterThanTomorrow/calva/issues/1918)
1011

1112
## [2.0.310] - 2022-10-24
1213

src/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export async function initProjectDir(uri?: vscode.Uri): Promise<void> {
184184
export function resolvePath(filePath?: string): vscode.Uri {
185185
const root = getProjectWsFolder();
186186

187-
if (root.uri.scheme !== 'file') {
187+
if (root && root.uri.scheme !== 'file') {
188188
return vscode.Uri.joinPath(root.uri, filePath);
189189
}
190190

0 commit comments

Comments
 (0)