Documentation ¶
Index ¶
- func AddRangeToUri(u sglsp.DocumentURI, r Range) sglsp.DocumentURI
- func FolderContains(folderPath string, path string) bool
- func IsDirectory(path string) bool
- func IsDotSnykFile(uri sglsp.DocumentURI) bool
- func IsUriDirectory(documentURI sglsp.DocumentURI) bool
- func PathFromUri(documentURI sglsp.DocumentURI) string
- func PathToUri(path string) sglsp.DocumentURI
- type Range
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRangeToUri ¶
func AddRangeToUri(u sglsp.DocumentURI, r Range) sglsp.DocumentURI
AddRangeToUri adds a fragment to the URI to allow for exact navigation A range of Start Line 0, Char 1, End Line 1, Char 10 translates to file://..#L1,2-L2,11. This is similar to vscode see e.g. https://github.com/microsoft/vscode/blob/b51955e4c878c8facdd775709740c8aa5d1192d6/src/vs/platform/opener/common/opener.ts#L162
func FolderContains ¶
func IsDirectory ¶
func IsDotSnykFile ¶
func IsDotSnykFile(uri sglsp.DocumentURI) bool
func IsUriDirectory ¶
func IsUriDirectory(documentURI sglsp.DocumentURI) bool
func PathFromUri ¶
func PathFromUri(documentURI sglsp.DocumentURI) string
todo can we create a path domain type? PathFromUri converts the given uri to a file path
func PathToUri ¶
func PathToUri(path string) sglsp.DocumentURI
PathToUri converts a path to a DocumentURI
Types ¶
Click to show internal directories.
Click to hide internal directories.