Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.resolve

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.resolve
import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { resolve } = fn;

On MS-Windows, when {filename} is a shortcut (a .lnk file), returns the path the shortcut points to in a simplified form. When {filename} is a symbolic link or junction point, return the full path to the target. If the target of junction is removed, return {filename}. On Unix, repeat resolving symbolic links in all path components of {filename} and return the simplified result. To cope with link cycles, resolving of symbolic links is stopped after 100 iterations. On other systems, return the simplified {filename}. The simplification step is done as by simplify(). resolve() keeps a leading path component specifying the current directory (provided the result is still a relative path name) and also keeps a trailing path separator.

Can also be used as a method:

GetName()->resolve()

Parameters

denops: Denops
filename: unknown

Returns

Promise<string>