Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 6918035

Browse files
committed
Align TS version with upstream Theia (#768)
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
1 parent 1828afb commit 6918035

File tree

5 files changed

+1371
-1153
lines changed

5 files changed

+1371
-1153
lines changed

generator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"rimraf": "2.6.2",
3636
"ts-jest": "25.3.1",
3737
"tslint": "5.11.0",
38-
"typescript": "3.5.3",
38+
"typescript": "3.9.2",
3939
"typescript-formatter": "7.2.2"
4040
},
4141
"files": [

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"eslint-plugin-no-null": "1.0.2",
1818
"tslint": "6.1.1",
1919
"eslint-plugin-sonarjs": "0.5.0",
20-
"typescript": "~3.5.3",
20+
"typescript": "~3.9.2",
2121
"typescript-formatter": "7.2.2"
2222
},
2323
"scripts": {

plugins/workspace-plugin/src/askpass-main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ function main(argv: string[]): void {
3232
return fatal('Skip fetch commands');
3333
}
3434

35-
const output = process.env['CHE_THEIA_GIT_ASKPASS_PIPE'] as string;
36-
const socketPath = process.env['CHE_THEIA_GIT_ASKPASS_HANDLE'] as string;
35+
const output = process.env['CHE_THEIA_GIT_ASKPASS_PIPE'];
36+
const socketPath = process.env['CHE_THEIA_GIT_ASKPASS_HANDLE'];
3737
const request = argv[2];
3838
const host = argv[4].substring(1, argv[4].length - 2);
3939
const opts: http.RequestOptions = {

plugins/workspace-plugin/src/askpass.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function getIPCHandlePath(nonce: string): string {
2828
}
2929

3030
if (process.env['XDG_RUNTIME_DIR']) {
31-
return path.join(process.env['XDG_RUNTIME_DIR'] as string, `che-theia-git-askpass-${nonce}.sock`);
31+
return path.join(process.env['XDG_RUNTIME_DIR'], `che-theia-git-askpass-${nonce}.sock`);
3232
}
3333

3434
return path.join(os.tmpdir(), `che-theia-git-askpass-${nonce}.sock`);

0 commit comments

Comments
 (0)