File tree 1 file changed +2
-2
lines changed
arduino-ide-extension/src/node
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { inject , injectable , postConstruct } from 'inversify' ;
2
- import { app } from 'electron' ;
3
2
import { ILogger } from '@theia/core/lib/common/logger' ;
4
3
import { MaybePromise } from '@theia/core/lib/common/types' ;
5
4
import { ConfigServiceImpl } from './config-service-impl' ;
@@ -71,10 +70,11 @@ export abstract class GrpcClientProvider<C> {
71
70
protected abstract close ( client : C ) : void ;
72
71
73
72
protected get channelOptions ( ) : Record < string , unknown > {
73
+ const pjson = require ( '../../package.json' ) || { "version" : "0.0.0" }
74
74
return {
75
75
'grpc.max_send_message_length' : 512 * 1024 * 1024 ,
76
76
'grpc.max_receive_message_length' : 512 * 1024 * 1024 ,
77
- 'grpc.primary_user_agent' : `arduino-ide/${ app . getVersion ( ) } `
77
+ 'grpc.primary_user_agent' : `arduino-ide/${ pjson . version } `
78
78
} ;
79
79
}
80
80
}
You can’t perform that action at this time.
0 commit comments