Skip to content

Commit 40366f1

Browse files
committed
reuse createInterfaceRequest from create_interface
1 parent 12ad578 commit 40366f1

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

client/src/commands/create_interface.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface CreateInterfaceRequestParams {
66
uri: string;
77
}
88

9-
let createInterfaceRequest = new RequestType<
9+
export const createInterfaceRequest = new RequestType<
1010
CreateInterfaceRequestParams,
1111
string,
1212
void

client/src/commands/switch_impl_intf.ts

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
import * as fs from "fs";
22
import { LanguageClient, RequestType } from "vscode-languageclient/node";
33
import { window } from "vscode";
4-
5-
interface CreateInterfaceRequestParams {
6-
uri: string;
7-
}
8-
9-
let createInterfaceRequest = new RequestType<
10-
CreateInterfaceRequestParams,
11-
string,
12-
void
13-
>("rescript-vscode.create_interface");
4+
import { createInterfaceRequest } from "./create_interface"
145

156
export const switchImplIntf = async (client: LanguageClient) => {
167
if (!client) {

0 commit comments

Comments
 (0)