Skip to content

Commit

Permalink
fix(annotations): fixed comment parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 25, 2023
1 parent 3e2184b commit 4f8916d
Show file tree
Hide file tree
Showing 8 changed files with 1,937 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ debug
foo.*
*.log
data
.vscode
.nlsp-settings
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ local my_settings = Neoconf.get("neodev", defaults)
- [x] [terraformls](https://github.com/hashicorp/vscode-terraform/tree/master/package.json)
- [x] [tsserver](https://github.com/microsoft/vscode/tree/main/extensions/typescript-language-features/package.json)
- [x] [volar](https://github.com/johnsoncodehk/volar/tree/master/vue-language-tools/vscode-vue/package.json)
- [x] [vtsls](https://github.com/yioneko/vtsls/tree/main/packages/service/configuration.schema.json)
- [x] [vuels](https://github.com/vuejs/vetur/tree/master/package.json)
- [x] [wgls_analyzer](https://github.com/wgsl-analyzer/wgsl-analyzer/tree/main/editors/code/package.json)
- [x] [yamlls](https://github.com/redhat-developer/vscode-yaml/tree/master/package.json)
Expand Down
3 changes: 3 additions & 0 deletions lua/neoconf/build/annotations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ end

function M.add_desc(lines, prop, prefix)
local ret = prop.markdownDescription or prop.description
if type(ret) == "table" and ret.message then
ret = ret.message
end
if prop.default then
if prop.default == vim.NIL then
prop.default = nil
Expand Down
1 change: 1 addition & 0 deletions schemas/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"terraformls": "https://raw.githubusercontent.com/hashicorp/vscode-terraform/master/package.json",
"tsserver": "https://raw.githubusercontent.com/microsoft/vscode/main/extensions/typescript-language-features/package.json",
"volar": "https://raw.githubusercontent.com/johnsoncodehk/volar/master/vue-language-tools/vscode-vue/package.json",
"vtsls": "https://raw.githubusercontent.com/yioneko/vtsls/main/packages/service/configuration.schema.json",
"vuels": "https://raw.githubusercontent.com/vuejs/vetur/master/package.json",
"wgls_analyzer": "https://raw.githubusercontent.com/wgsl-analyzer/wgsl-analyzer/main/editors/code/package.json",
"yamlls": "https://raw.githubusercontent.com/redhat-developer/vscode-yaml/master/package.json",
Expand Down
13 changes: 13 additions & 0 deletions schemas/luau_lsp.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,19 @@
"scope": "window",
"type": "number"
},
"luau-lsp.require.mode": {
"default": "relativeToWorkspaceRoot",
"enum": [
"relativeToWorkspaceRoot",
"relativeToFile"
],
"enumDescriptions": [
"String requires are interpreted relative to the root of the workspace",
"String requires are interpreted relative to the current file"
],
"markdownDescription": "How string requires should be interpreted",
"type": "string"
},
"luau-lsp.signatureHelp.enabled": {
"default": true,
"markdownDescription": "Enable signature help",
Expand Down
Loading

0 comments on commit 4f8916d

Please sign in to comment.