67P / hyperchannel

Kosmos Chat for the Web
Mozilla Public License 2.0
20 stars 3 forks source link

Add some configs for better editor/language server support #295

Closed galfert closed 1 year ago

galfert commented 1 year ago

This adds mappings for paths to help editors resolve import statements to app and test files

Example:

import Message from 'hyperchannel/models/message';

There is no actual hyperchannel/ folder, those files are located in app/ instead. This is what the config maps.

It gives us jump to definition and auto-import for functions defined within our own codebase for editors that support this.

Also the exclude attribute tells the language service what files are not part of the app's source code. This should help with performance for IntelliSense/code completion.

After updating to a newer Ember version, we can also include Ember's type packages so we also get auto-import and code completion for Ember itself.