Hi!
I'm trying to troubleshoot some issues the client I work on has with omnisharp-roslyn, and I was hoping I could ping you all for help.
The issue is, when opening a unity project, say one containing the following file:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
Everything is fine, our client detects the imports no problem.
However, the minute we open a new file (for which we send the requisite textDocument/didOpen notification) with the exact same content, in the exact same subdirectory, the server returns import error messages:
The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) irective or an assembly reference?)
Other servers seem to be fine recognizing new files this way. Do we need to send an additional notification when creating a new file such as workspace/didChangeWatchedFiles?
Hi!
I'm trying to troubleshoot some issues the client I work on has with omnisharp-roslyn, and I was hoping I could ping you all for help.
The issue is, when opening a unity project, say one containing the following file:
Everything is fine, our client detects the imports no problem.
However, the minute we open a new file (for which we send the requisite
textDocument/didOpennotification) with the exact same content, in the exact same subdirectory, the server returns import error messages:Other servers seem to be fine recognizing new files this way. Do we need to send an additional notification when creating a new file such as
workspace/didChangeWatchedFiles?