Skip to content

Commit fbd4bee

Browse files
committed
👍 Add version suffix to prevent confliction
1 parent e5b1c35 commit fbd4bee

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

denops_std/helper/echo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ export async function friendlyCall(
6363

6464
async function echoVim(denops: Denops, message: string): Promise<void> {
6565
await load(denops, new URL("./echo.vim", import.meta.url));
66-
await denops.call("DenopsStdHelperEcho", message);
66+
await denops.call("DenopsStdHelperEchoV1", message);
6767
}

denops_std/helper/echo.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
if exists('g:loaded_denops_std_helper_echo')
1+
if exists('g:loaded_denops_std_helper_echo_v1')
22
finish
33
endif
4-
let g:loaded_denops_std_helper_echo = 1
4+
let g:loaded_denops_std_helper_echo_v1 = 1
55

6-
function! DenopsStdHelperEcho(message) abort
6+
function! DenopsStdHelperEchoV1(message) abort
77
call timer_start(0, { -> s:echo(a:message) })
88
endfunction
99

denops_std/helper/input.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export async function input(
4949
});
5050
try {
5151
return await denops.call(
52-
"DenopsStdHelperInput",
52+
"DenopsStdHelperInputV1",
5353
options.prompt ?? "",
5454
options.text ?? "",
5555
{ plugin: denops.name, id },
@@ -67,7 +67,7 @@ export async function input(
6767
}
6868
}
6969
return denops.call(
70-
"DenopsStdHelperInput",
70+
"DenopsStdHelperInputV1",
7171
options.prompt ?? "",
7272
options.text ?? "",
7373
completion,

denops_std/helper/input.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
if exists('g:denops_std_helper_input_loaded')
1+
if exists('g:loaded_denops_std_helper_input_v1')
22
finish
33
endif
4-
let g:denops_std_helper_input_loaded = 1
4+
let g:loaded_denops_std_helper_input_v1 = 1
55

66
let s:escape_token = '###DenopsStdHelperInputCancelled###'
77

8-
function! DenopsStdHelperInput(prompt, text, completion, inputsave) abort
8+
function! DenopsStdHelperInputV1(prompt, text, completion, inputsave) abort
99
if type(a:completion) is# v:t_dict
1010
let s:completion = copy(a:completion)
1111
let completion = printf('customlist,%s', s:completion_proxy_name)

0 commit comments

Comments
 (0)