Commit graph

145 commits

Author SHA1 Message Date
Noah Santschi-Cooney
c28d23a971 Added regexes from old linter
Added LinterState to keep track of current lint run
Added the adding of include directive and finding top levels
2019-10-06 18:40:17 +01:00
Noah Santschi-Cooney
d7d8f9de96 Added logLevel setting
Added quick linux version of fromFileURI
2019-10-06 18:20:35 +01:00
Noah Santschi-Cooney
b8acc6837e Moved to better logging lib 2019-10-06 11:25:53 +01:00
Noah Santschi-Cooney
ffa0007c51 Fixed downloading of glslangValidator 2019-10-06 10:52:25 +01:00
Noah Santschi-Cooney
41995c3f38 Created GLSLangProvider class with API for linting and downloading glslangValidator
Moved glslang stuff from Config to GLSLangProvider. ConfigProvider invokes GLSLangValidator to prompt and download glslangValidator instead
2019-08-11 21:23:49 +01:00
Noah Santschi-Cooney
156d76e7de
Updated everything to work with latest vscode
restored lang server stdout
added hard-coded link provider
2019-08-10 23:38:21 +01:00
Noah Santschi-Cooney
c4ad024d3d
Sync point 2019-04-22 17:32:01 +01:00
Noah Santschi-Cooney
3ac2a6b479
Updated some types 2019-04-21 16:27:16 +01:00
Noah Santschi-Cooney
d198e5fdd0 Added some cool and well badges 2018-08-31 20:36:24 +01:00
Noah Santschi-Cooney
8b0d0eb918
v0.8.5 2018-08-25 23:55:19 +01:00
Noah Santschi-Cooney
5fe911e564
More lines bs. Big heck and darnit 2018-08-06 19:28:28 +01:00
Noah Santschi-Cooney
c3acbcb135
Merged 2018-08-06 16:19:17 +01:00
Noah Santschi-Cooney
34b13770a7
Test fix for code-insiders 2018-08-06 16:14:57 +01:00
Noah Santschi-Cooney
ced6e2796d Updated changelog 2018-08-05 22:24:09 +01:00
Noah Santschi-Cooney
4097cd63ee another error to filter out. God i love (lack of) GPU standards 2018-08-05 22:20:00 +01:00
Noah Santschi-Cooney
ba43f057c8 glslangValidator doesnt like gpu_shader4 it seems so i gotta filter that out 2018-08-05 22:09:46 +01:00
Noah Santschi-Cooney
27334114e3 More logging, more try catches, and updated README. 0.8.2 released! 2018-08-05 20:58:00 +01:00
Noah Santschi-Cooney
2421aeb32c
Added support for ../ includes 2018-08-05 20:35:34 +01:00
Noah Santschi-Cooney
243eb671bc
Added a Downloading notification for glslangValidator 2018-08-05 00:32:24 +01:00
Noah Santschi-Cooney
2d5d074157
Fixed another line number issue. God they practically make themselves 2018-08-05 00:29:37 +01:00
Noah Santschi-Cooney
6fd02abd9d
Fixed errors still propogating of the include was removed from the parent. Also supressing 'shaderpacks' path not found 2018-08-05 00:10:40 +01:00
Noah Santschi-Cooney
036b6809dc
Added logo for when published 2018-08-04 21:36:46 +01:00
Noah Santschi-Cooney
41cce2121c
Preparing for release with more logging and more safety checks 2018-08-04 21:18:03 +01:00
Noah Santschi-Cooney
9660263dad
Tiny rearrangment and added some logging to begin with 2018-08-04 01:46:20 +01:00
Noah Santschi-Cooney
9a3a6f54cc Some syntactical changes to make things look nicer overall with seperating to more functions and declaring types 2018-08-03 18:44:07 +01:00
Noah Santschi-Cooney
f5af65a701 Up-propogation of errors works. Now need to handle the case of changing includes 2018-08-03 15:46:17 +01:00
Noah Santschi-Cooney
24c5b5bf51
Fixed tslint 2018-08-02 00:25:26 +01:00
Noah Santschi-Cooney
8e572c51dc
Working on integrating the include graph properly. Need to make some changes including possibly storing line nums for each include. Was currently only deal with some includes as if they only have one parent. wut ze fuk 2018-08-02 00:18:39 +01:00
Noah Santschi-Cooney
c95367739f Moving from maps of maps to a more sophisticated graph class for includes 2018-08-01 18:38:21 +01:00
Noah Santschi-Cooney
18c0e2ef5c Two edge cases covered 2018-08-01 14:49:20 +01:00
Noah Santschi-Cooney
b76392b4e8
Stage one of comments works! Thanks to @BuilderB0y for the edge cases ive yet to cover 2018-08-01 00:53:24 +01:00
Noah Santschi-Cooney
e2d7f8ea3d
Fixed line numbers for diagnostics. Also added a starter graph class so that i can traverse the include tree 2018-07-31 20:57:23 +01:00
Noah Santschi-Cooney
6a484de93e
Merge branch 'master' of github.com:Strum355/vscode-mc-shader 2018-07-26 23:23:26 +01:00
Noah Santschi-Cooney
2e74c5e6f1
Fixed #11, turns out i wasnt accounting for adding in the include directive, hence errors were oneline off in the top level file 2018-07-26 23:17:34 +01:00
Noah Santschi-Cooney
3db626e834
Added waffle to readme 2018-07-25 11:34:46 +01:00
Noah Santschi-Cooney
5a06d8ff1b
Linting of all currently discovered files that contain the edited include at some depth is pretty much working! Issue #11 highlights the blocking bug 2018-07-25 00:43:07 +01:00
Noah Santschi-Cooney
5e6a12c88b
Probably the last time i need to revise checking if binary exists. Bit annoying that windows returns 1 if it doesnt exist 2018-07-24 23:05:59 +01:00
Noah Santschi-Cooney
bd546ab67f Finally works on windows. Going to validate it isnt broken on linux now 2018-07-24 22:49:08 +01:00
Noah Santschi-Cooney
b5c47e827a Added proper line terminator to regex, return string for abs path on failure and -1 for lineNum for windows in another placec 2018-07-23 22:00:09 +01:00
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
3e30f359df Prefixed include error with include filename 2018-07-19 11:45:35 +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
f8edaa549c
Added IncludeObj type alias 2018-07-14 15:58:06 +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
d7d41985ef Some exported functions for later testing 2018-07-12 18:42:07 +01:00