zeroc-ice / vscode-slice

Slice syntax highlighter for Visual Studio Code
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Place 'built-in' Slice files at the front of the 'references' list. #55

Closed InsertCreativityHere closed 3 months ago

InsertCreativityHere commented 3 months ago

Now that slicec parses files in the order you provide them (see https://github.com/icerpc/slicec/pull/694)... this PR fixes #49.

Previously, slicec parsed files in a non-deterministic order, making it impossible to control which files get parsed first. Now that this is no longer the case, this PR changes our logic so that we always parse the built-in-Slice-files first.

This way, if a user does have a conflict with these Slice definitions, the redefinition error will appear in their files. (slicec will first parse the built-in-files, and unless we really screwed up, there will be no redefinitions in them)