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

Basic Goto Declaration Support #22

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e23da49
Analyze entire project on opening it
ehedbor Apr 11, 2024
e0cc38b
handle workspace events
ehedbor Apr 11, 2024
07bd76d
Fix text document modification detection
ehedbor Apr 12, 2024
380e65c
Add caching for tree sitter analysis
ehedbor Apr 12, 2024
683af77
Add prettier config
ehedbor Apr 19, 2024
e6f5b3b
Steal representation of Modelica projects from OMFrontend
ehedbor Apr 19, 2024
38da1aa
Finish resolve algorithm; integrate with analyzer and server
ehedbor Apr 22, 2024
3646148
Get outline working again; changes to uri handling
ehedbor Apr 23, 2024
7eb3727
Fix infinite recursion and declaration symbols not being found
PaddiM8 Apr 24, 2024
9dae5cb
Implement goto declaration/definition for locals
ehedbor Apr 26, 2024
8795ed1
Minor tweaks to resolve algorithm
ehedbor Apr 30, 2024
30cbf1d
Add new resolve algorithm
ehedbor May 1, 2024
df86c40
Fix resolution of types and locals
PaddiM8 May 1, 2024
c15d93f
Fix resolution of inherited members
PaddiM8 May 1, 2024
aaa6dbc
Allow relative references in extends clauses
PaddiM8 May 1, 2024
6101ada
Bugfixes; use paths internally
ehedbor May 2, 2024
e015766
Fix endless recursion bug in resolveReference
ehedbor May 3, 2024
2d0cc19
Fix resolution algorithm
ehedbor May 3, 2024
b597f9a
Tweak resolution algorithm
ehedbor May 7, 2024
de6798c
Reanalyse when a file is modified, before it's saved
PaddiM8 May 7, 2024
634fb3c
Incremental parsing
PaddiM8 May 10, 2024
cf6d053
Whitespace changes
AnHeuermann May 14, 2024
6a727b3
Add additional documentation.
ehedbor May 21, 2024
38dc70e
update settings
ehedbor May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
printWidth: 100,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: false,
quoteProps: "as-needed",
trailingComma: "all",
bracketSpacing: true,
arrowParens: "always",
proseWrap: "preserve",
endOfLine: "lf",
};
12 changes: 11 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,15 @@
"typescript.preferences.quoteStyle": "single",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"prettier.configPath": "./.prettierrc.js",
"cSpell.words": [
"metamodelica",
"Modelica",
"nodelib",
"OSMC",
"redeclaration"
],
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @AnHeuermann meant that you can add this to your VS code settings so the code you write is always formatted without trailing whitespaces. I don't think he meant to add these settings to the project.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely it would be a good idea to add these to the project settings anyways, right? Doing that would help to ensure a more consistent style across contributors.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not everyone uses VS Code, so I usually don't add the .vscode directory. For a VS Code extension this might be different.
Both is fine with me.

}
202 changes: 202 additions & 0 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading