We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e414e0 commit cc7bb07Copy full SHA for cc7bb07
spx-gui/src/components/editor/code-editor/ui/resource-reference/index.ts
@@ -94,23 +94,15 @@ export class ResourceReferenceController extends Emitter<{
94
95
this.addDisposer(
96
watch(
97
- this.providerRef,
98
- (provider) => {
+ () => [this.providerRef.value, this.ui.project.filesHash, this.ui.activeTextDocument] as const,
+ ([provider]) => {
99
if (provider == null) return
100
refreshItems()
101
},
102
{ immediate: true }
103
)
104
105
106
- this.addDisposer(
107
- watch(
108
- () => this.ui.project.filesHash,
109
- () => refreshItems(),
110
- { immediate: true }
111
- )
112
113
-
114
const editorEl = editor.getDomNode()
115
if (editorEl == null) throw new Error('No editor dom node')
116
0 commit comments