yaml-language-server 1.9.1-44bce9b.0 → 1.9.1-4956427.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +8 -0
- package/DCO +37 -0
- package/lib/esm/languageservice/parser/yaml-documents.js +1 -1
- package/lib/umd/languageservice/parser/yaml-documents.js +1 -1
- package/out/server/src/languageservice/parser/yaml-documents.js +1 -1
- package/out/server/test/autoCompletion.test.js +106 -106
- package/out/server/test/autoCompletion.test.js.map +1 -1
- package/out/server/test/autoCompletionFix.test.js +91 -26
- package/out/server/test/autoCompletionFix.test.js.map +1 -1
- package/out/server/test/defaultSnippets.test.js +37 -26
- package/out/server/test/defaultSnippets.test.js.map +1 -1
- package/out/server/test/hover.test.js +59 -36
- package/out/server/test/hover.test.js.map +1 -1
- package/out/server/test/integration.test.js.map +1 -1
- package/out/server/test/multipleDocuments.test.js.map +1 -1
- package/out/server/test/utils/testHelper.d.ts +11 -0
- package/out/server/test/utils/testHelper.js +20 -1
- package/out/server/test/utils/testHelper.js.map +1 -1
- package/package.json +1 -1
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## Contributing
|
|
2
|
+
|
|
3
|
+
### Certificate of Origin
|
|
4
|
+
|
|
5
|
+
By contributing to this project you agree to the Developer Certificate of
|
|
6
|
+
Origin (DCO). This document was created by the Linux Kernel community and is a
|
|
7
|
+
simple statement that you, as a contributor, have the legal right to make the
|
|
8
|
+
contribution. See the [DCO](DCO) file for details.
|
package/DCO
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Developer Certificate of Origin
|
|
2
|
+
Version 1.1
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
|
|
5
|
+
1 Letterman Drive
|
|
6
|
+
Suite D4700
|
|
7
|
+
San Francisco, CA, 94129
|
|
8
|
+
|
|
9
|
+
Everyone is permitted to copy and distribute verbatim copies of this
|
|
10
|
+
license document, but changing it is not allowed.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Developer's Certificate of Origin 1.1
|
|
14
|
+
|
|
15
|
+
By making a contribution to this project, I certify that:
|
|
16
|
+
|
|
17
|
+
(a) The contribution was created in whole or in part by me and I
|
|
18
|
+
have the right to submit it under the open source license
|
|
19
|
+
indicated in the file; or
|
|
20
|
+
|
|
21
|
+
(b) The contribution is based upon previous work that, to the best
|
|
22
|
+
of my knowledge, is covered under an appropriate open source
|
|
23
|
+
license and I have the right under that license to submit that
|
|
24
|
+
work with modifications, whether created in whole or in part
|
|
25
|
+
by me, under the same open source license (unless I am
|
|
26
|
+
permitted to submit under a different license), as indicated
|
|
27
|
+
in the file; or
|
|
28
|
+
|
|
29
|
+
(c) The contribution was provided directly to me by some other
|
|
30
|
+
person who certified (a), (b) or (c) and I have not modified
|
|
31
|
+
it.
|
|
32
|
+
|
|
33
|
+
(d) I understand and agree that this project and the contribution
|
|
34
|
+
are public and that a record of the contribution (including all
|
|
35
|
+
personal information I submit with it, including my sign-off) is
|
|
36
|
+
maintained indefinitely and may be redistributed consistent with
|
|
37
|
+
this project or the open source license(s) involved.
|
|
@@ -109,7 +109,7 @@ export class SingleYAMLDocument extends JSONDocument {
|
|
|
109
109
|
if (!range) {
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
|
-
const diff = range[
|
|
112
|
+
const diff = range[1] - offset;
|
|
113
113
|
if (maxOffset <= range[0] && diff <= 0 && Math.abs(diff) <= offsetDiff) {
|
|
114
114
|
offsetDiff = Math.abs(diff);
|
|
115
115
|
maxOffset = range[0];
|
|
@@ -112,7 +112,7 @@ class SingleYAMLDocument extends jsonParser07_1.JSONDocument {
|
|
|
112
112
|
if (!range) {
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
const diff = range[
|
|
115
|
+
const diff = range[1] - offset;
|
|
116
116
|
if (maxOffset <= range[0] && diff <= 0 && Math.abs(diff) <= offsetDiff) {
|
|
117
117
|
offsetDiff = Math.abs(diff);
|
|
118
118
|
maxOffset = range[0];
|