• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS20 Visual Studio (code) -- making Simconnect aware

Messages
497
Country
unitedstates
(1) When using "Vistual Studio Code", is there any way to make it SimConnect aware, so it can finish Simconnect parameters, and display the correct format for them.
(like you can in VS when writing FSX C# code, and the editor is Simconnect aware)

(2) Even more general question. How do you debug js when running in MSFS ????
 
Are you talking about extensions? I was just looking at VS Code and trying to figure out it's extension API. But what does VS Code give you that VS2019 IDE does not?
 
Are you talking about extensions? I was just looking at VS Code and trying to figure out it's extension API. But what does VS Code give you that VS2019 IDE does not?
I believe that VS Code is just a stand alone, code aware editor. ie it knows about js or other programming languages, so has color coding of the languages syntax - know the key words etc
Saves having to load in the whole of VS2019, just to do some simple editing - its not like you can debug MSFS .js files in the Asobo Sandbox ?? ;)

I am asking if in addition to that, there was a way to Add Simconnect syntax awareness, so it knew a list of Simconncet variables, and would both highlight them, as well finish them, and make it obvious if any are not spelt correctly etc etc.

By no means a MUST have, but would be a nice feature (at least, I think it would)

VS-Code - Simconnect.png


Note: Obviously the Bright Red text I added in Photoshop, to highlight the point in this screenshot, of an Invalid Simvar, which does not get Highlighted like the other correctly detected ones
 
Last edited:
OK looking at VS Code a little more, I think you are trying to emulate the intellisense, There is a CodeCompletion sample in the extensions API. Looks like an interesting project. ;). Anyone out there working on this type of extension?
 
Yes ... trying to emulate the Intellisense, for js with a Simconnect extension ... ( Now I am talking the correct terminology 😀 ) I seem to remember doing this for the old Brief Editor, way way way back in early FS XML days... all a dim distant memory now.
If someone else has already done this an d is willing to share, there is no point in re-inventing the wheel, otherwise, as you say, an Interesting project :stirthepo
 
Anyone interested in taking this on as a project - especially if they have had any previous experience modifying VS's Intellisense ?
I started to look up how to do this in the documentation, and for me, it would be a major undertaking and a massive learning curve.
For someone me familiar with Intellisense, it might be quite simple ??
 
Back
Top