Skip to content

Commit c31ab14

Browse files
committed
refactor: same removal of Effect.Effect<void> in soqlEditorInstance.ts
1 parent c946211 commit c31ab14

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/salesforcedx-vscode-soql/src/editor/soqlEditorInstance.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class SOQLEditorInstance {
135135
protected sendMessageToUi(
136136
type: MessageType,
137137
payload?: string | string[] | DescribeSObjectResult
138-
): Effect.Effect<void> {
138+
) {
139139
return Effect.promise<boolean>(
140140
() => this.webviewPanel.webview.postMessage({ type, payload })
141141
).pipe(
@@ -149,7 +149,7 @@ export class SOQLEditorInstance {
149149
);
150150
}
151151

152-
protected updateWebview(document: vscode.TextDocument): Effect.Effect<void> {
152+
protected updateWebview(document: vscode.TextDocument) {
153153
const self = this;
154154
return Effect.gen(function* () {
155155
if (self.pendingWebviewUpdate) {
@@ -160,11 +160,11 @@ export class SOQLEditorInstance {
160160
});
161161
}
162162

163-
protected updateSObjects(sobjectNames: string[]): Effect.Effect<void> {
163+
protected updateSObjects(sobjectNames: string[]) {
164164
return this.sendMessageToUi('sobjects_response', sobjectNames);
165165
}
166166

167-
protected updateSObjectMetadata(sobject: DescribeSObjectResult): Effect.Effect<void> {
167+
protected updateSObjectMetadata(sobject: DescribeSObjectResult) {
168168
return this.sendMessageToUi('sobject_metadata_response', sobject);
169169
}
170170

@@ -266,7 +266,7 @@ export class SOQLEditorInstance {
266266
}
267267
};
268268

269-
protected runQueryDone(): Effect.Effect<void> {
269+
protected runQueryDone() {
270270
return Effect.promise<boolean>(() =>
271271
this.webviewPanel.webview.postMessage({ type: 'run_query_done' satisfies MessageType })
272272
).pipe(Effect.asVoid);
@@ -294,5 +294,5 @@ export class SOQLEditorInstance {
294294
this.disposedCallback = callback;
295295
}
296296

297-
public onConnectionChanged = (): Effect.Effect<void> => this.sendMessageToUi('connection_changed');
297+
public onConnectionChanged = () => this.sendMessageToUi('connection_changed');
298298
}

0 commit comments

Comments
 (0)