-
-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Describe the bug
When a tab is created for a .cpp, .c, or .h file, no language server capabilities work in it. It only starts working after closing and reopening the sketch or changing the board selection.
To Reproduce
- Open a sketch in the Arduino IDE.
- Click the downward pointing triangle button on the right side of the tab bar.
- Select "New Tab" from the menu.
- In the "Name for new file" field, type
foo.cpp. - Click the OK button.
- Add some code to the
foo.cpptab that should produce some reaction from the language server. For example, this code:should produce a red squiggly underline.asdf
Note that there is no language server capabilities in the file. - Close the sketch.
- Open the sketch again.
Note that the language server capabilities are now working as expected infoo.cpp.
Expected behavior
Language Server capabilities work in all types of sketch code files from creation on.
Desktop
- OS: Windows 10
- Arduino IDE Version: 2.0.0-rc2
Date: 2021-12-13T10:09:39.122Z
CLI Version: 0.20.2 [13783819]
Additional context
The issue does not occur when using Arduino Language Server version 0.5.0-rc2
Logs:
LSnew.zip
Metadata
Metadata
Assignees
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project