Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Fix has_preview exeption #423

Merged
merged 2 commits into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export namespace Commands {
/**
* Returns the result of checking to see if a current preview window exists
*/
export const HAS_PREVIEW = "coc#util#has_preview";
export const HAS_PREVIEW = "coc#list#has_preview";
/**
* Shows Coc Info and logs
*/
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ async function launchMetals(
makeVimDoctor(JSON.parse(doctorJson));
break;
case ClientCommands.ReloadDoctor:
workspace.nvim.call("coc#util#has_preview").then((preview) => {
workspace.nvim.call(Commands.HAS_PREVIEW).then((preview) => {
if (preview > 0) {
const doctorJson: string =
params.arguments && params.arguments[0];
Expand Down