Skip to content

Commit 7c39ec3

Browse files
authored
Merge pull request vunguyentuan#22 from dontgetfoundout/windows-goto-definition
Provide empty hostname for GoTo Definition Locations
2 parents d712b7e + 76ae862 commit 7c39ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const parseCSSVariablesFromText = ({
119119
const service = languageService();
120120

121121
const document = TextDocument.create(
122-
`file://${filePath}`,
122+
`file:///${filePath}`,
123123
'css',
124124
0,
125125
content
@@ -149,7 +149,7 @@ const parseCSSVariablesFromText = ({
149149
const variable: CSSVariable = {
150150
symbol,
151151
definition: {
152-
uri: `file://${filePath}`,
152+
uri: `file:///${filePath}`,
153153
range: Range.create(
154154
document.positionAt(symbol.node.offset),
155155
document.positionAt(symbol.node.end)

0 commit comments

Comments
 (0)