Skip to content

Commit 476eabc

Browse files
committed
Added String method to DocumentURI
1 parent da6892e commit 476eabc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lsp/uri.go

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ func (uri DocumentURI) Unbox() string {
3939
return path
4040
}
4141

42+
func (uri DocumentURI) String() string {
43+
return string(uri)
44+
}
45+
4246
// NewDocumenteURIFromPath create a DocumentURI from the given Path object
4347
func NewDocumenteURIFromPath(path *paths.Path) DocumentURI {
4448
return NewDocumentURI(path.String())

0 commit comments

Comments
 (0)