1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff --git a/src/extension.ts b/src/extension.ts
index e9c2999b2fb3d86cf25c830ac10559268a36c1fa..2dd723a4c7b954fc184117fae4c3d3303a58fe4c 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -140,8 +140,8 @@ 'tailwindcss/foundDefinition',
(configPath, pos) => {
Workspace.openTextDocument(configPath).then((doc: TextDocument) => {
Window.showTextDocument(doc).then((editor: TextEditor) => {
- let start = new Position(pos[0], pos[1])
- let end = new Position(pos[2], pos[3])
+ let start = new Position(pos.start.line, pos.start.character)
+ let end = new Position(pos.end.line, pos.end.character)
editor.revealRange(
new Range(start, end),
TextEditorRevealType.InCenter
|