Commit graph

29 commits

Author SHA1 Message Date
Noah Santschi-Cooney
1cec184e04 Added postError function for short error notifications. Using existsSync to check if binary exists. Seperated onConfigChange into different functions. lineNum -2 for windows instead of -1 for linux, such a pain. 2018-07-20 22:05:59 +01:00
Noah Santschi-Cooney
c8c7a29abb Diagnostics aggregating works now, meaning missing includes now error along with any others 2018-07-19 13:00:03 +01:00
Noah Santschi-Cooney
682e677ee9 Errors in includes now propogate up the include tree 2018-07-18 18:52:43 +01:00
Noah Santschi-Cooney
6837bea05d Missing imports throws error WIP 2018-07-17 18:13:03 +01:00
Noah Santschi-Cooney
a4380969b7 Diagnostics are now cleared if a file is closed 2018-07-16 18:21:24 +01:00
Noah Santschi-Cooney
c5fc9ffedd Added download prompt to download glslangValdiator 2018-07-16 17:49:55 +01:00
Noah Santschi-Cooney
db321c8566
Moved config back to lang server. Temp removed comment checking (it was bad anyways). Only adding in extension if it doesnt already exist. Fixed token replacer 2018-07-14 19:34:04 +01:00
Noah Santschi-Cooney
cacfbe7a4e Doing more on the extension side and splitting up the lang server linting more 2018-07-13 18:16:50 +01:00
Noah Santschi-Cooney
8bf9b17efc
SHE WORKS!!!!11!1! A glorious day indeed. Now all thats left to do is to do a big cleanup of the codebase and have proper error and comment handling.
Info about current commit:
1) Reason the wrong outro parent file was added was due to the change at (now) line 82. Self explanatory.
2) Using maps now for diagnostics as well instead of indexable types.
3) Fixed the ternary operator. Forgot that '0' is truthy..
4) using readFileSync to load files that arent loaded into documents.
TODO: The todos listed in the code as well as file caching
2018-07-10 01:22:18 +01:00
Noah Santschi-Cooney
5f125d710d
Lot of debugging lines in here atm. Merging of recursive includes seems to work for the most part except the parent file is coming out wrong 2018-07-09 00:26:18 +01:00
Noah Santschi-Cooney
dbad626af9
Using Map objects instead of indexable types 2018-07-04 00:16:22 +01:00
Noah Santschi-Cooney
d7a5adb668 Recursive includes works 90%!!!!! Wrong line numbers are given because its basing the line numbers off the root file 2018-07-02 18:56:17 +01:00
Noah Santschi-Cooney
d2e58f475d Fixed server crashing if glslangValidator wasnt found 2018-06-29 19:31:56 +01:00
Noah Santschi-Cooney
17d84bad6b
And thus stage 1 of includes is complete. One-depth includes work! 2018-06-24 19:14:35 +01:00
Noah Santschi-Cooney
00c4cc487a
OWO whats this? Includes kinda work? Thats right. Except *sometimes* it causes the entire extension to hang for some reason 2018-06-24 01:18:03 +01:00
Noah Santschi-Cooney
f4f2b9bf3e
Deriving includes path appears to be working OK. Optimized the includes regex by a factor of ~3 and made it work for relative paths too 2018-06-19 20:36:41 +01:00
Noah Santschi-Cooney
5d53c2020a
Did something to do with includes and a stack i guess 2018-06-17 22:40:48 +01:00
Noah Santschi-Cooney
7dd1699dbe
Much more optimized error regex 2018-06-17 18:08:28 +01:00
Noah Santschi-Cooney
d8e374496b
back to the shorter var name 2018-06-15 23:01:09 +01:00
Noah Santschi-Cooney
ef643d8cdb
Proper errors if glslangValidator isnt found, woop 2018-06-15 22:59:59 +01:00
Noah Santschi-Cooney
44ee663d06 Shows error if glslangValidator not found. Also made script to download it 2018-06-15 18:40:01 +01:00
Noah Santschi-Cooney
67e9c991a4
Linting on save instead. Added a basic preprocess beginning, adding in the extension. Not complete 2018-06-14 01:29:11 +01:00
Noah Santschi-Cooney
87759b4b2d
REJOICE FOR LINTING WORKS. Just no includes support yet 2018-06-10 21:35:23 +01:00
Noah Santschi-Cooney
7775b75411
Config should be complete. Added 'shaderpacks' to end of mc path, passing correct object now too 2018-06-06 22:47:08 +01:00
Noah Santschi-Cooney
513606542e
Removed placeholder validation function 2018-06-04 21:39:59 +01:00
Noah Santschi-Cooney
a65a6c1bb3
Some basic completion provider. Need to go through all the options and tweak them 2018-06-04 20:25:57 +01:00
Noah Santschi-Cooney
63151eaa76
Added config to server 2018-06-03 15:25:03 +01:00
Noah Santschi-Cooney
674c3cbb9b
turns out it was because i actually forgot to commit the rest. Nice. Have a load of default code 2018-06-02 22:42:36 +01:00
Noah Santschi-Cooney
3db6964f7c
Changing to an LSP style model. Client extension is now small af 2018-06-02 21:04:53 +01:00