Commit Graph

51 Commits

Author SHA1 Message Date
Andrew Dupont
76ac2cf81c Make useExperimentalModernTreeSitter the default…
…and create `useLegacyTreeSitter` for those who want to opt into the previous default behavior.

(Legacy Tree-sitter grammars will soon be removed, but this is a step toward that future!)
2024-01-07 15:35:07 -08:00
confused-Techie
72071cf821 Ensure to export main as JS 2023-07-08 17:23:07 -07:00
confused-Techie
454d89bdc9 Fixes to syntax in decaf work 2023-07-08 17:22:57 -07:00
confused-Techie
60114aa1e5 Decaf provider.js; Remove provider.coffee 2023-07-08 17:13:37 -07:00
confused-Techie
dbc26c947b Manual decaf main.js; Remove main.coffee 2023-07-08 16:54:49 -07:00
confused-Techie
0220d83373 Add Decafed files 2023-07-08 16:53:07 -07:00
Andrew Dupont
25a5502852 [autocomplete-css] Get tests passing…
…for new CSS tree-sitter grammar.

This is not perfect, but it's ∞% better than the old tree-sitter CSS grammar,
for which `autocomplete-css` never worked.
2023-06-19 23:30:29 -07:00
confused_techie
bcf62e576d
Merge branch 'master' into no-request 2023-06-11 13:16:00 -07:00
confused-Techie
73d32221bc Make comments unnecessary with better function names 2023-05-21 16:32:35 -07:00
confused-Techie
4ff2b572d7 Move superagent to devDependency 2023-05-21 16:03:58 -07:00
confused-Techie
eed7516dbd Remove pointless logging 2023-05-21 16:03:07 -07:00
confused-Techie
10c4fc41a6 Update name of sort function 2023-05-21 15:57:06 -07:00
confused-Techie
cb31730a27 Implement bubbleSort() and propertySort() 2023-05-21 15:55:34 -07:00
confused-Techie
1d0791b3b2 Move all update files into their own folder 2023-05-21 14:21:53 -07:00
confused-Techie
4eef8250fb Merge branch 'master' into no-request 2023-05-20 20:39:08 -07:00
Andrew Dupont
f7af100559 Get autocomplete-css tests working
This is just a band-aid. There are deeper issues here, like lack of
compatibility with tree-sitter grammars and lack of SCSS (new syntax) support.
2023-05-19 15:00:45 -07:00
confused-Techie
26acf7dcfd Remove unused request from autocomplete-css 2023-05-10 18:02:22 -07:00
confused_techie
804bbda902
Update packages/autocomplete-css/update.js
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2023-03-14 21:58:47 -07:00
confused-Techie
a27b70be71 Finish adding all manual properties 2023-03-09 20:07:34 -08:00
confused-Techie
e7feeacd27 Add manual property descriptions to reduce empties to 17 2023-03-09 19:50:32 -08:00
confused-Techie
46f96db790 Many many others 2023-03-06 20:20:05 -08:00
confused-Techie
828f326dc7 Add in stroke spec properties 2023-03-06 19:01:32 -08:00
confused-Techie
b79cc7b756 Add other alias' and property mappings 2023-03-06 18:56:14 -08:00
confused-Techie
04119047b0 Add all legacy alias' and more 2023-03-06 18:30:05 -08:00
confused-Techie
f34341bd49 First manual property description, and implementation of it's functionality 2023-03-06 17:43:04 -08:00
confused-Techie
a2237f3a9f Also add checks to svg/elements to collect missing marker 2023-03-06 17:08:16 -08:00
confused-Techie
732a353f45 Protect against collecting warnings and notices as descriptions 2023-03-04 19:32:22 -08:00
confused-Techie
7c1e1d37b1 Resolve the initial blank descriptions 2023-03-04 19:06:04 -08:00
confused_techie
0ab4f7d22a
Update packages/autocomplete-css/update.js 2023-03-04 16:46:55 -08:00
DeeDeeG
10240764f9 autocomplete-css: Handle more recursion
Don't want those implicit values showing in the middle of suggested
auto-completions! Only at the end!

Return an empty array instead of the implicit values where needed,
if recursing.
2023-03-04 00:50:11 -05:00
DeeDeeG
ebdd711d64 autocomplete-css: Handle recursion for appending implicit values
Avoid appending the implicit values multiple times / in multiple
spots in the values list per property.

(These duplicate implicit values would be deduped, but the middle ones
would be the ones that would be kept, whereas we want to only keep
the bottom ones.)

---

Details:

The function that adds the implicit values to each property is
recursed sometimes, based on the structure of the data we are
ingesting. For the deeper/innner calls of this function, avoid
appending the implicit values, since we will be doing that at the end
of the outer/upper calls.

Makes sure the implicit values are not added in the middle *and* at
the bottom, in which scenario they would eventually be deduped
(removing the bottom copy, I suppose), but leaving one copy of the
implicit values smack-dab in the middle of the values list for the
given property.

We want only one copy of these values, sure, so deduping is
appreciated, but they should be *at the bottom* of the list of values.
Not the middle. So we gotta make sure the only copy fed through the
deduper function is the one at the bottom.
2023-03-03 23:44:09 -05:00
DeeDeeG
a163e387f4 autocomplete-css: Refresh package-lock.json
Not sure why this "from" field changed. Hmm.
2023-03-03 21:48:15 -05:00
DeeDeeG
4eb9758ab6 autocomplete-css: Put implicit values last
(This commit should just be re-arranging the values,
so as to put the implicit ones last.)

These implicit values are the same for all properties.

I find it more useful to view the property-specific values first,
since users may not actually know what property-specific values exist
for a given CSS property, and these implicit values are *always*
allowed... (I think they are, anyway).

This shows those property-specific values first, better advertising
what options are actually available to use. (Besides that, as far as I
know, the implicit "inherit", "initial", "unset" values are not as
commonly used as the property-specific values anyway.)
2023-03-03 21:42:10 -05:00
DeeDeeG
1ad19ceb7d autocomplete-css: Run node update.js
Seems to re-order some of the properties, for some reason?
2023-03-03 21:27:25 -05:00
confused-Techie
7a746a7696 Rename variables within isValueInCompletions() 2023-03-01 17:21:41 -08:00
confused-Techie
d4ebeec879 Update README.md for new update process 2023-02-25 14:50:28 -08:00
confused-Techie
b9acc26f4f Last completions.json agnostic test 2023-02-25 14:34:37 -08:00
confused-Techie
b15410ee5c Added implicitly defined keywords to completions.js 2023-02-25 14:33:00 -08:00
confused-Techie
0b6fd03db2 Large rewrite to specs to allow for expansion and change of the autocompletions from now into the future 2023-02-25 14:28:38 -08:00
confused_techie
3570e56b5e
Update packages/autocomplete-css/update.js
Co-authored-by: Steven Nguyen <nguyeste008@students.garlandisd.net>
2023-02-25 13:00:09 -08:00
confused-Techie
2c5ecd01aa Fixed parts of update.js, and fixed some tests, broke others
`update.js` now will not overwrite any duplicated property entries. In the case of duplication found will write only the one with the most values.

Additionally values are now dedupe prior to adding.

Finally we now support Non-Terminal Data Types in CSS Value Definition Syntax, allowing us to resolve values when the value group refers to another property
2023-02-25 02:19:01 -08:00
confused-Techie
705e0d9a0d Ensure getValuesOfProp() properly receives full css object rather than just a single specs value 2023-02-24 20:03:13 -08:00
confused-Techie
9137f9dea1 Allow manual HTML tags replacement from MDN docs 2023-02-24 19:39:28 -08:00
confused-Techie
9af13758a4 Spelling fix seperators -> separators 2023-02-23 22:17:22 -08:00
confused-Techie
6758361ebe Fixed type in completions.json Removed unneeded files 2023-02-23 21:57:21 -08:00
confused-Techie
34b22ae380 Final touches, and lots of them 2023-02-23 21:50:36 -08:00
confused-Techie
2a5fafbf7f Initial Setup and parsing of data 2023-02-21 20:56:06 -08:00
confused-Techie
0d1c14a789 Mirror #209 (autocomplete-css) 2022-12-11 15:55:03 -08:00
confused-Techie
a601e5a6d8 Mirror: #190 (autocomplete-css) 2022-12-11 15:54:04 -08:00
confused-Techie
dc8c541660 Mirror: cleanup and rename #1 (autocomplete-css)
Co-Authored-By: Sertonix <83883937+Sertonix@users.noreply.github.com>
2022-12-11 15:53:08 -08:00