File tree 5 files changed +12
-74
lines changed
5 files changed +12
-74
lines changed Original file line number Diff line number Diff line change @@ -2161,22 +2161,6 @@ integer
2161
2161
500
2162
2162
```
2163
2163
2164
- # workspace.supportScheme
2165
-
2166
- Provide language server for the Lua files of the following scheme.
2167
-
2168
- ## type
2169
-
2170
- ``` ts
2171
- Array < string >
2172
- ```
2173
-
2174
- ## default
2175
-
2176
- ``` jsonc
2177
- [" file" ," untitled" ," git" ]
2178
- ```
2179
-
2180
2164
# workspace.useGitIgnore
2181
2165
2182
2166
Ignore files list in ` .gitignore ` .
@@ -2207,4 +2191,4 @@ Array<string>
2207
2191
2208
2192
``` jsonc
2209
2193
[]
2210
- ```
2194
+ ```
Original file line number Diff line number Diff line change @@ -698,7 +698,7 @@ object<string, string>
698
698
``` jsonc
699
699
{
700
700
/*
701
- 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
701
+ 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
702
702
*/
703
703
" ambiguity-1" : " Any" ,
704
704
/*
@@ -946,7 +946,7 @@ object<string, string>
946
946
``` jsonc
947
947
{
948
948
/*
949
- 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
949
+ 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
950
950
*/
951
951
" ambiguity-1" : " Warning" ,
952
952
/*
@@ -2161,22 +2161,6 @@ integer
2161
2161
500
2162
2162
```
2163
2163
2164
- # workspace.supportScheme
2165
-
2166
- Provide language server for the Lua files of the following scheme.
2167
-
2168
- ## type
2169
-
2170
- ``` ts
2171
- Array < string >
2172
- ```
2173
-
2174
- ## default
2175
-
2176
- ``` jsonc
2177
- [" file" ," untitled" ," git" ]
2178
- ```
2179
-
2180
2164
# workspace.useGitIgnore
2181
2165
2182
2166
Ignore files list in ` .gitignore ` .
@@ -2207,4 +2191,4 @@ Array<string>
2207
2191
2208
2192
``` jsonc
2209
2193
[]
2210
- ```
2194
+ ```
Original file line number Diff line number Diff line change @@ -698,7 +698,7 @@ object<string, string>
698
698
``` jsonc
699
699
{
700
700
/*
701
- 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
701
+ 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
702
702
*/
703
703
" ambiguity-1" : " Any" ,
704
704
/*
@@ -945,7 +945,7 @@ object<string, string>
945
945
``` jsonc
946
946
{
947
947
/*
948
- 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
948
+ 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
949
949
*/
950
950
" ambiguity-1" : " Warning" ,
951
951
/*
@@ -2160,22 +2160,6 @@ integer
2160
2160
500
2161
2161
```
2162
2162
2163
- # workspace.supportScheme
2164
-
2165
- 为以下 scheme 的lua文件提供语言服务。
2166
-
2167
- ## type
2168
-
2169
- ``` ts
2170
- Array < string >
2171
- ```
2172
-
2173
- ## default
2174
-
2175
- ``` jsonc
2176
- [" file" ," untitled" ," git" ]
2177
- ```
2178
-
2179
2163
# workspace.useGitIgnore
2180
2164
2181
2165
忽略 ` .gitignore ` 中列举的文件。
@@ -2206,4 +2190,4 @@ Array<string>
2206
2190
2207
2191
``` jsonc
2208
2192
[]
2209
- ```
2193
+ ```
Original file line number Diff line number Diff line change @@ -2160,22 +2160,6 @@ integer
2160
2160
500
2161
2161
```
2162
2162
2163
- # workspace.supportScheme
2164
-
2165
- 為以下 ` scheme ` 的lua檔案提供語言伺服。
2166
-
2167
- ## type
2168
-
2169
- ``` ts
2170
- Array < string >
2171
- ```
2172
-
2173
- ## default
2174
-
2175
- ``` jsonc
2176
- [" file" ," untitled" ," git" ]
2177
- ```
2178
-
2179
2163
# workspace.useGitIgnore
2180
2164
2181
2165
忽略 ` .gitignore ` 中列舉的檔案。
@@ -2206,4 +2190,4 @@ Array<string>
2206
2190
2207
2191
``` jsonc
2208
2192
[]
2209
- ```
2193
+ ```
Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ local function getDefault(temp)
32
32
if default == nil and temp .hasDefault then
33
33
default = json .null
34
34
end
35
- if type (default ) == ' table' and getType (temp ) == ' object' then
36
- setmetatable (default , json .object )
35
+ if type (default ) == ' table'
36
+ and not next (default )
37
+ and getType (temp ) == ' object' then
38
+ default = json .createEmptyObject ()
37
39
end
38
40
return default
39
41
end
You can’t perform that action at this time.
0 commit comments