Skip to content

Commit

Permalink
recover configuration builder
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Dec 16, 2024
1 parent 41e44d9 commit 62606a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2639,7 +2639,7 @@
"type": "boolean"
},
"Lua.hover.previewFields": {
"default": 50,
"default": 10,
"markdownDescription": "%config.hover.previewFields%",
"scope": "resource",
"type": "integer"
Expand Down Expand Up @@ -3114,6 +3114,12 @@
"scope": "resource",
"type": "boolean"
},
"Lua.type.inferTableSize": {
"default": 10,
"markdownDescription": "%config.type.inferTableSize%",
"scope": "resource",
"type": "integer"
},
"Lua.type.weakNilCheck": {
"default": false,
"markdownDescription": "%config.type.weakNilCheck%",
Expand Down
11 changes: 11 additions & 0 deletions package/build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ package.version = VERSION
-- isPreReleaseVersion = false,
-- preRelease = false,
-- }
package.contributes.configuration = {
title = 'Lua',
type = 'object',
properties = require 'server.tools.configuration',
}
package.contributes.semanticTokenScopes = {
{
language = 'lua',
scopes = require 'package.semanticTokenScope',
}
}

local encodeOption = {
newline = '\r\n',
Expand Down

0 comments on commit 62606a7

Please sign in to comment.