File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export interface DevtoolsPluginApi<TSettings> {
18
18
getComponentInstances ( app : App ) : Promise < ComponentInstance [ ] >
19
19
highlightElement ( instance : ComponentInstance ) : void
20
20
unhighlightElement ( ) : void
21
- getSettings ( ) : TSettings
21
+ getSettings ( pluginId ?: string ) : TSettings
22
22
/**
23
23
* @private Not implemented yet
24
24
*/
Original file line number Diff line number Diff line change @@ -356,12 +356,12 @@ export class DevtoolsPluginApiInstance<TSettings = any> implements DevtoolsPlugi
356
356
return true
357
357
}
358
358
359
- getSettings ( ) {
360
- return getPluginSettings ( this . plugin . descriptor . id , this . defaultSettings )
359
+ getSettings ( pluginId ?: string ) {
360
+ return getPluginSettings ( pluginId ?? this . plugin . descriptor . id , this . defaultSettings )
361
361
}
362
362
363
- setSettings ( value : TSettings ) {
364
- setPluginSettings ( this . plugin . descriptor . id , value )
363
+ setSettings ( value : TSettings , pluginId ?: string ) {
364
+ setPluginSettings ( pluginId ?? this . plugin . descriptor . id , value )
365
365
}
366
366
367
367
private get enabled ( ) {
You can’t perform that action at this time.
0 commit comments