forked from kcl-lang/kcl
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore semantic ai #6
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* fix: make fmt Signed-off-by: zongz <[email protected]> * feat: add keyword argument name in error message Signed-off-by: zongz <[email protected]> --------- Signed-off-by: zongz <[email protected]>
* feat: rename symbol Signed-off-by: xiarui.xr <[email protected]> * rename: support new name validity check Signed-off-by: xiarui.xr <[email protected]> * minor fixes Signed-off-by: xiarui.xr <[email protected]> * minor updates Signed-off-by: xiarui.xr <[email protected]> --------- Signed-off-by: xiarui.xr <[email protected]>
…#787) * fix: schema config key update at runtime Signed-off-by: peefy <[email protected]> * fix: schema unification optional annotation Signed-off-by: peefy <[email protected]> * chore: remove un-used code in lsp Signed-off-by: peefy <[email protected]> * test: add more test cases for schema inherit and modification in-place. Signed-off-by: peefy <[email protected]> * fix: normal attribute assign in the schema and add more test cases Signed-off-by: peefy <[email protected]> * fix: wrong grammar test cases for assign stmt in schema. Signed-off-by: peefy <[email protected]> --------- Signed-off-by: peefy <[email protected]>
Signed-off-by: xiarui.xr <[email protected]>
Signed-off-by: jakezhu9 <[email protected]>
Signed-off-by: peefy <[email protected]>
* fix: format behavior of union types Signed-off-by: xiarui.xr <[email protected]> * fix test cases Signed-off-by: xiarui.xr <[email protected]> --------- Signed-off-by: xiarui.xr <[email protected]>
…kcl-lang#792) * fix: format behavior on line break between import stmt and other stmts Signed-off-by: xiarui.xr <[email protected]> * fix test cases Signed-off-by: xiarui.xr <[email protected]> --------- Signed-off-by: xiarui.xr <[email protected]>
* feat : namer for new architecture of semantic model Signed-off-by: never <[email protected]> * feat: namer add symbol_db Signed-off-by: never <[email protected]> --------- Signed-off-by: never <[email protected]>
Signed-off-by: xiarui.xr <[email protected]>
* test: move parser type unit tests to snaptest Signed-off-by: jakezhu9 <[email protected]> * test: move parser type node unit tests to snaptest Signed-off-by: jakezhu9 <[email protected]> * test: move parser ast json unit tests to snaptest Signed-off-by: jakezhu9 <[email protected]> * test: move parser file unit tests to snaptest Signed-off-by: jakezhu9 <[email protected]> --------- Signed-off-by: jakezhu9 <[email protected]>
* feat: support schema override attribute lazy eval and reduce unnecessary calculations and improve performance. Signed-off-by: peefy <[email protected]> * feat: add without insert index check for dict attributes Signed-off-by: peefy <[email protected]> --------- Signed-off-by: peefy <[email protected]>
Signed-off-by: zongz <[email protected]>
Signed-off-by: peefy <[email protected]>
* fix: Defend against panics caused by requests from non-KCL files. When the client renames a file, if the file suffix is changed, some requests will also be sent. However, it is considered not a valid kcl file during compilation, which will cause lsp panic. Signed-off-by: He1pa <[email protected]> * feat: verify request path valid at begin of handle request Signed-off-by: He1pa <[email protected]> --------- Signed-off-by: He1pa <[email protected]>
fix: fix lsp completion for function. Add parentheses when complete function call Signed-off-by: He1pa <[email protected]>
Signed-off-by: He1pa <[email protected]>
…a type instance (kcl-lang#803) * fix: fix the lambda argument type, when it is schema type, into schema type instance Signed-off-by: zongz <[email protected]> * fix: make fmt Signed-off-by: zongz <[email protected]> --------- Signed-off-by: zongz <[email protected]>
* feat: enhance lsp completion detail. Add completion kind(icon in vscode), detail and doc in completion item. Enhance completion label for function Signed-off-by: He1pa <[email protected]> * doc: fix doc typo Signed-off-by: He1pa <[email protected]> --------- Signed-off-by: He1pa <[email protected]>
Signed-off-by: zongz <[email protected]>
Signed-off-by: peefy <[email protected]>
feat: completion for schema attr value. Completion when input = or : in config schema attr, and completion item contains primitiver type, literal, schema, list, dict, union Signed-off-by: He1pa <[email protected]>
Signed-off-by: He1pa <[email protected]>
* feat: add advenced resolver for new semantic modle Signed-off-by: never <[email protected]> * chorm : add comment about advanced resolver Signed-off-by: never <[email protected]> --------- Signed-off-by: never <[email protected]>
feat: lsp completion of trigger newline when init schema Signed-off-by: He1pa <[email protected]>
Signed-off-by: xiarui.xr <[email protected]>
…-lang#815) fix: fix type checkout missing when assigning a dict to a schema Signed-off-by: zongz <[email protected]>
Signed-off-by: peefy <[email protected]>
* fix: rm the error 'conflict kcl.mod file path' Signed-off-by: zongz <[email protected]> * fix: make fmt Signed-off-by: zongz <[email protected]> --------- Signed-off-by: zongz <[email protected]>
Signed-off-by: peefy <[email protected]>
…ncremental compilation ignores entry file (kcl-lang#1085) feat: fix compile unit, always add entry file into main pkg to avoid incremental compilation ingnores entry file Signed-off-by: he1pa <[email protected]>
…lue (kcl-lang#1086) Signed-off-by: peefy <[email protected]>
…er (kcl-lang#1089) Signed-off-by: peefy <[email protected]>
Signed-off-by: peefy <[email protected]>
…cl-lang#1090) * fix: add builtin function 'crypto.uuid()' Signed-off-by: zong-zhe <[email protected]> * feat: add built-in function crypto.filesha256() Signed-off-by: zongz <[email protected]> * fix: make fmt Signed-off-by: zongz <[email protected]> * fix: fix test case Signed-off-by: zongz <[email protected]> --------- Signed-off-by: zong-zhe <[email protected]> Signed-off-by: zongz <[email protected]>
Signed-off-by: zong-zhe <[email protected]>
* feat: Remove the special judgment for literal strings during completion, and change the search for the nearest symbol during completion to the symbol one or two characters before the trigger. Signed-off-by: he1pa <[email protected]> * fmt code Signed-off-by: he1pa <[email protected]> * fix joined_string complete Signed-off-by: he1pa <[email protected]> --------- Signed-off-by: he1pa <[email protected]>
feat: add decorator symbol in advanced resolver, add sema highlight and hover for decorator symbol Signed-off-by: he1pa <[email protected]>
Signed-off-by: peefy <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
…lang#1102) * feat: add better error message for else if token parse recolvery Signed-off-by: peefy <[email protected]> * test: add else if token syntax error test case in the grammar tests Signed-off-by: peefy <[email protected]> --------- Signed-off-by: peefy <[email protected]>
* fix: add datafile to api validate_code Signed-off-by: zongz <[email protected]> * fix: fix failed test cases Signed-off-by: zongz <[email protected]> --------- Signed-off-by: zongz <[email protected]>
Signed-off-by: peefy <[email protected]>
…ix security issues (kcl-lang#1107) Signed-off-by: peefy <[email protected]>
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.8 to 0.8.11. - [Release notes](https://github.com/tokio-rs/mio/releases) - [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md) - [Commits](tokio-rs/mio@v0.8.8...v0.8.11) --- updated-dependencies: - dependency-name: mio dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: fix completion when schema end pos is eof. Insert a fake new line character to expand the scope of the schema. Signed-off-by: he1pa <[email protected]> * fmt code Signed-off-by: he1pa <[email protected]> * fix ut Signed-off-by: he1pa <[email protected]> --------- Signed-off-by: he1pa <[email protected]>
fix: expr context type store in lopp Signed-off-by: peefy <[email protected]>
* fix: fix advanced resolver current schema symbol Signed-off-by: he1pa <[email protected]> * add ut Signed-off-by: he1pa <[email protected]> * fix ut Signed-off-by: he1pa <[email protected]> --------- Signed-off-by: he1pa <[email protected]>
Signed-off-by: peefy <[email protected]>
…ng#1117) * provided multiple quick fix options for variable modifications Signed-off-by: Shashank Mittal <[email protected]> * tests fixed Signed-off-by: Shashank Mittal <[email protected]> * removed unwanted file Signed-off-by: Shashank Mittal <[email protected]> --------- Signed-off-by: Shashank Mittal <[email protected]>
Signed-off-by: peefy <[email protected]>
* feat: incremental resolver in lsp Signed-off-by: he1pa <[email protected]> * fix update invalidated resolver cache Signed-off-by: he1pa <[email protected]> --------- Signed-off-by: he1pa <[email protected]>
Signed-off-by: he1pa <[email protected]>
Signed-off-by: peefy <[email protected]>
* chore: clean udeps for the sematic API Signed-off-by: peefy <[email protected]> * feat: add semantic with cache API Signed-off-by: peefy <[email protected]> --------- Signed-off-by: peefy <[email protected]>
Signed-off-by: peefy <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.