Skip to content

Commit 8162fba

Browse files
committed
fixup!: rename to FOLDER_OR_WORKSPACE_WAS_CLOSED
1 parent 477b731 commit 8162fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/routes/vscode.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class CodeServerRouteWrapper {
2828
const isAuthenticated = await authenticated(req)
2929
const NO_FOLDER_OR_WORKSPACE_QUERY = !req.query.folder && !req.query.workspace
3030
// Ew means the workspace was closed so clear the last folder/workspace.
31-
const WORKSPACE_WAS_CLOSED = req.query.ew
31+
const FOLDER_OR_WORKSPACE_WAS_CLOSED = req.query.ew
3232

3333
if (!isAuthenticated) {
3434
const to = self(req)
@@ -37,7 +37,7 @@ export class CodeServerRouteWrapper {
3737
})
3838
}
3939

40-
if (NO_FOLDER_OR_WORKSPACE_QUERY && !WORKSPACE_WAS_CLOSED) {
40+
if (NO_FOLDER_OR_WORKSPACE_QUERY && !FOLDER_OR_WORKSPACE_WAS_CLOSED) {
4141
const settings = await req.settings.read()
4242
const lastOpened = settings.query || {}
4343
// This flag disables the last opened behavior

0 commit comments

Comments
 (0)