File tree 4 files changed +11
-8
lines changed
4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 36
36
"preversion" : " npm run test" ,
37
37
"version" : " npm run compile && git add -A ." ,
38
38
"watch" : " tsc --build --watch" ,
39
- "lint" : " eslint . --ext .ts,.tsx " ,
40
- "lint:fix" : " eslint . --ext .ts,.tsx --fix"
39
+ "lint" : " eslint . --ext .ts" ,
40
+ "lint:fix" : " eslint . --ext .ts --fix"
41
41
},
42
42
"devDependencies" : {
43
43
"@commitlint/cli" : " ^19.8.0" ,
86
86
"endOfLine" : " lf"
87
87
},
88
88
"dependencies" : {
89
+ "mac-ca" : " ^3.1.1" ,
89
90
"win-ca" : " ^3.5.1"
90
91
}
91
92
}
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ export class LoggingServer {
16
16
this . lspServer = new LspServer ( this . lspConnection , this . encoding , this . logger )
17
17
this . lspServer . setInitializeHandler ( ( params : InitializeParams ) : Promise < InitializeResult > => {
18
18
this . updateLoggingLevel ( params . initializationOptions ?. logLevel ?? ( 'log' as LogLevel ) )
19
- return {
19
+ return Promise . resolve ( {
20
20
capabilities : { } ,
21
- }
21
+ } )
22
22
} )
23
23
this . lspServer . setDidChangeConfigurationHandler ( async _params => {
24
24
const logLevelConfig = await lspConnection . workspace . getConfiguration ( {
Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
1
2
/*!
2
3
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
4
* SPDX-License-Identifier: Apache-2.0
6
7
import { readdirSync , readFileSync } from 'node:fs'
7
8
import path from 'node:path'
8
9
import { OperationalTelemetryProvider , TELEMETRY_SCOPES } from '../../operational-telemetry/operational-telemetry'
9
- import winCaReader from 'win-ca/api'
10
- import macCertsReader from 'mac-ca'
11
10
12
11
const UNIX_CERT_FILES = [
13
12
'/etc/ssl/certs/ca-certificates.crt' ,
@@ -78,6 +77,7 @@ export function readLinuxCertificates(): string[] {
78
77
}
79
78
80
79
export function readWindowsCertificates ( ) : string [ ] {
80
+ const winCaReader = require ( 'win-ca' )
81
81
const certs : string [ ] = [ ]
82
82
83
83
winCaReader ( {
@@ -90,6 +90,8 @@ export function readWindowsCertificates(): string[] {
90
90
}
91
91
92
92
export function readMacosCertificates ( ) : string [ ] {
93
+ const macCertsReader = require ( 'mac-ca' )
94
+
93
95
const certs : string [ ] = macCertsReader . get ( {
94
96
excludeBundled : false ,
95
97
} )
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ export function getTelemetryLspServer(
67
67
setServerCrashTelemetryListeners ( )
68
68
setMemoryUsageTelemetry ( )
69
69
70
- return {
70
+ return Promise . resolve ( {
71
71
capabilities : { } ,
72
- }
72
+ } )
73
73
} )
74
74
75
75
lspServer . setDidChangeConfigurationHandler ( async _params => {
You can’t perform that action at this time.
0 commit comments