Skip to content

Commit 1cc7bdb

Browse files
committed
Update tsconfig
1 parent 84fe420 commit 1cc7bdb

File tree

5 files changed

+9
-15
lines changed

5 files changed

+9
-15
lines changed

src/login/loginCoordinator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ export class LoginCoordinator {
320320
client.setSessionToken(value);
321321
try {
322322
user = await client.getAuthenticatedUser();
323+
return null;
323324
} catch (err) {
324325
// For certificate errors show both a notification and add to the
325326
// text under the input box, since users sometimes miss the

src/remote/remote.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export class Remote {
141141
} else {
142142
// User cancelled or login failed
143143
await this.closeRemote();
144+
return undefined;
144145
}
145146
};
146147

src/remote/workspaceStateMachine.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { type AuthorityParts } from "src/util";
2-
31
import { createWorkspaceIdentifier, extractAgents } from "../api/api-helper";
42
import {
53
startWorkspaceIfStoppedOrFailed,
64
streamAgentLogs,
75
streamBuildLogs,
86
} from "../api/workspace";
97
import { maybeAskAgent } from "../promptUtils";
8+
import { type AuthorityParts } from "../util";
109

1110
import { TerminalSession } from "./terminalSession";
1211

src/workspace/workspacesProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ export class OpenableTreeItem extends vscode.TreeItem {
388388
this.description = description;
389389
}
390390

391-
iconPath = {
391+
override iconPath = {
392392
light: path.join(__filename, "..", "..", "media", "logo-black.svg"),
393393
dark: path.join(__filename, "..", "..", "media", "logo-white.svg"),
394394
};

tsconfig.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"target": "ES2021",
4+
"target": "ES2022",
55
"moduleResolution": "node",
66
"outDir": "out",
77
// "dom" is required for importing the API from coder/coder.
8-
"lib": ["ES2021", "dom"],
8+
"lib": ["ES2022", "dom"],
99
"sourceMap": true,
1010
"strict": true,
1111
"esModuleInterop": true,
1212
"skipLibCheck": true,
13-
"forceConsistentCasingInFileNames": true,
14-
"baseUrl": ".",
15-
"paths": {
16-
// axios contains both an index.d.ts and index.d.cts which apparently have
17-
// conflicting types. For some reason TypeScript is reading both and
18-
// throwing errors about AxiosInstance not being compatible with
19-
// AxiosInstance. This ensures we use only index.d.ts.
20-
"axios": ["./node_modules/axios/index.d.ts"]
21-
}
13+
"noFallthroughCasesInSwitch": true,
14+
"noImplicitOverride": true,
15+
"noImplicitReturns": true
2216
},
23-
"exclude": ["node_modules"],
2417
"include": ["src"]
2518
}

0 commit comments

Comments
 (0)