Skip to content
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 352 commits into from
Mar 11, 2024
Merged

Chore semantic ai #6

merged 352 commits into from
Mar 11, 2024

Conversation

Peefy
Copy link
Owner

@Peefy Peefy commented Mar 11, 2024

No description provided.

zong-zhe and others added 30 commits October 17, 2023 19:08
* 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]>
* 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]>
* 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]>
* 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]>
…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]>
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]>
* 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]>
…-lang#815)

fix: fix type checkout missing when assigning a dict to a schema

Signed-off-by: zongz <[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]>
He1pa and others added 27 commits February 26, 2024 17:57
…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]>
…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]>
* 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]>
…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]>
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]>
…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]>
* 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]>
* 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]>
@Peefy Peefy merged commit 6b38328 into main Mar 11, 2024
4 of 17 checks passed
@Peefy Peefy deleted the chore-semantic-ai branch March 11, 2024 05:17
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.