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

Generator fragment for textmate grammars and Xbase LSP server infra #2969

Merged
merged 2 commits into from
Apr 14, 2024

Conversation

szarnekow
Copy link
Contributor

No description provided.

@szarnekow szarnekow added this to the Release_2.35 milestone Apr 2, 2024
@szarnekow szarnekow self-assigned this Apr 2, 2024
@szarnekow szarnekow force-pushed the sz_issue1329 branch 3 times, most recently from 0e568f5 to dc737fb Compare April 13, 2024 20:04
@szarnekow szarnekow changed the title Generator fragment for textmate grammars Generator fragment for textmate grammars and Xbase LSP server infra Apr 13, 2024
Also:
- Optionally write project configuration from StandaloneBuilder
  It includes a content hash for change tracking of jars
- Fixed typos in local variable names
- Remove duplicated tests and obsolete test-data
- Expose mechanism to clear the cache for classpath-based jvm types
- Optionally allow to obtain the location URI from a class mirror

Signed-off-by: Sebastian Zarnekow <[email protected]>
@szarnekow szarnekow merged commit f738a5b into main Apr 14, 2024
10 checks passed
@szarnekow szarnekow deleted the sz_issue1329 branch April 14, 2024 20:33
Copy link
Contributor

@LorenzoBettini LorenzoBettini left a comment

Choose a reason for hiding this comment

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

@szarnekow I only left a few minor comments.

@@ -224,17 +278,17 @@ private StandaloneBuilder initBuilder(ILanguageConfiguration config) {
}

private StandaloneBuilder initBuilder(ILanguageConfiguration config, String... srcDirs) {
List<String> patthes = new ArrayList<String>();
List<String> pathes = new ArrayList<String>();
Copy link
Contributor

Choose a reason for hiding this comment

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

nip: shouldn't it be paths?
Also later

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020 itemis AG (http://www.itemis.eu) and others.
* Copyright (c) 2020, 2023 itemis AG (http://www.itemis.eu) and others.
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't it be 2024?

@@ -192,6 +212,14 @@ public StandaloneBuilder() {
public void setIncrementalBuild(boolean enable) {
incremental = enable;
}

public void setClasspathConfigurationLocation(String location, String key, String outputDirectory) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we use since annotations here at all?

@@ -1,15 +1,13 @@
source.. = src/,\
src-gen/,\
src-no-jdt/,\
src-standalone/
src-no-jdt/
Copy link
Contributor

Choose a reason for hiding this comment

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

The final "/" shouldn't be needed, should it?

}

@Deprecated
protected BinaryClassMirror(BinaryClass binaryClass, ITypeFactory<BinaryClass, JvmDeclaredType> typeFactory) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a comment about deprecation

public class HoverIdeStrings extends UIStrings {

@Override
public String typeParameters(Iterable<? extends JvmTypeParameter> typeParams) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we already have something similar in our code base?

}
};
StringBuilder result = new StringBuilder(250);
if (typeArgumentCount != constructorTypeArgumentCount) {
Copy link
Contributor

Choose a reason for hiding this comment

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

As above, don't we already have something similar?
The two loops also seem to contain some duplicated code.

typeProvider.clearCache();
}
JvmTypeChangeDispatcher dispatcher = JvmTypeChangeDispatcher.findResourceChangeDispatcher(resourceSet);
EObject dummy = EcoreFactory.eINSTANCE.createEObject();
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the meaning of this dummy used with eNotify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants