fix: setting scope ctx
This commit is contained in:
@@ -31,6 +31,7 @@ import type {} from '@deepseek-ai/dsh-api-remotes/types'
|
|||||||
// never — the owning package's client-safe, type-only subpath supplies the
|
// never — the owning package's client-safe, type-only subpath supplies the
|
||||||
// cordis `Events` entry (and with it the branded `SettingsNamespace`).
|
// cordis `Events` entry (and with it the branded `SettingsNamespace`).
|
||||||
import type {} from '@deepseek-ai/dsh-settings/types'
|
import type {} from '@deepseek-ai/dsh-settings/types'
|
||||||
|
import type { TypeRTClientRemote } from '@deepseek-ai/dsh-type-meta'
|
||||||
|
|
||||||
type SettingsFace = Pick<IApiClient, 'settings'>
|
type SettingsFace = Pick<IApiClient, 'settings'>
|
||||||
|
|
||||||
@@ -239,7 +240,7 @@ export class SettingsScopeService extends Service {
|
|||||||
void controller.load()
|
void controller.load()
|
||||||
}
|
}
|
||||||
const disposers = [
|
const disposers = [
|
||||||
ctx.remote.$on('settings/document-updated', refresh),
|
ctx.get('remote')!.$on('settings/document-updated', refresh),
|
||||||
ctx.on('connection/reset', () => { refresh() }),
|
ctx.on('connection/reset', () => { refresh() }),
|
||||||
]
|
]
|
||||||
void controller.load()
|
void controller.load()
|
||||||
|
|||||||
Reference in New Issue
Block a user