blended-modeling / eatxt

Eclipse Public License 2.0
1 stars 1 forks source link

VS Code: Autocompletion also proposes existing identifiers #17

Open joerg-holtmann opened 2 years ago

joerg-holtmann commented 2 years ago

VS Code autocompletion strangely proposes already existing identifiers for new shortname identifiers, which should not happen. This does not occur in the Eclipse RCP editor and thereby is an issue specific to VS Code. Assumption: It's a setting that you can simply turn of, e.g.,

joerg-holtmann commented 2 years ago

I found out that it is indeed an IntelliSense setting. Until now, I did not find out how to configure this in the development workspace for the whole language with the ID "east-adl". As a workaround, one can disable the feature in you runtime workspace: File -> Preferences -> Settings -> Text Editor -> Suggestions -> Scroll far down to property "Suggest: Show Words" and disable it.

This sets the property "editor.suggest.showWords" to false. For setting this globally, we must somehow bring this into the development workspace and set this property for the language with the ID "east-adl", see https://code.visualstudio.com/docs/getstarted/settings#_languagespecific-editor-settings for a TypeScript example and controlling such properties via settings.json. Our language seems to be not known in the development workspace.