Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ltex-ls-plus #3442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

foxyseta
Copy link
Contributor

Added LTeX+, a popular fork of LTeX which, unlike LTeX, is actively maintained. It has over 4600 downloads on the VS Marketplace: https://marketplace.visualstudio.com/items?itemName=ltex-plus.vscode-ltex-plus

Comment on lines +41 to +50
do
local enabled_keys = {}
for _, ft in ipairs(filetypes) do
local id = get_language_id({}, ft)
if not enabled_keys[id] then
enabled_keys[id] = true
table.insert(enabled_ids, id)
end
end
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you not inline these ids in settings ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I initially tried to adhere to the ltex package's style.
See 9aabcec and 4f34f6f.

Shall I apply all changes to the ltex package as well (in a separate PR)?

Comment on lines +32 to +39
local function get_language_id(_, filetype)
local language_id = language_id_mapping[filetype]
if language_id then
return language_id
else
return filetype
end
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
local function get_language_id(_, filetype)
local language_id = language_id_mapping[filetype]
if language_id then
return language_id
else
return filetype
end
end
local function get_language_id(_, filetype)
return language_id_mapping[filetype] or filetype
end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and inline the language_id_mapping in these function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants