Skip to content

Commit 5c34314

Browse files
committed
ref(parser)!: do not read environment files during the parsing process
1 parent 4f41d09 commit 5c34314

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lua/rest-nvim/parser/init.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
local parser = {}
1212

13-
local env_vars = require("rest-nvim.parser.env_vars")
1413
local dynamic_vars = require("rest-nvim.parser.dynamic_vars")
1514

1615
---@alias NodesList { [string]: TSNode }[]
@@ -185,7 +184,6 @@ local function parse_variables(node, tree, text, variables)
185184
logger:debug(
186185
"The variable '" .. variable_name .. "' was not found in the document, falling back to the environment ..."
187186
)
188-
env_vars.read_file()
189187
local env_var = vim.env[variable_name]
190188
if not env_var then
191189
---@diagnostic disable-next-line need-check-nil
@@ -285,7 +283,6 @@ local function traverse_body(tbl, variables)
285283
logger:debug(
286284
"The variable '" .. variable_name .. "' was not found in the document, falling back to the environment ..."
287285
)
288-
env_vars.read_file()
289286
local env_var = vim.env[variable_name]
290287
if not env_var then
291288
---@diagnostic disable-next-line need-check-nil

0 commit comments

Comments
 (0)