-
Notifications
You must be signed in to change notification settings - Fork 325
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I was asked to move swiftlang/vscode-swift#1908 here.
Swift version
swiftlang-6.2.3.3.2
Platform
macOS Tahoe 26.1 (25B78)
Editor
Visual Studio Code 1.106.0 with Swift extension 2.12.0
Description
Starting with version 2.4.0, warnings and errors in Swift scripts (standalone files) only update after running the Swift: Run Swift Script command but not after the file is modified or saved. In version 2.2.0, they update immediately when the file is modified.
Steps to Reproduce
- Create a new file
Test.swift - Write some Swift code to the file that produces an error or warning, then save the file
let x: Int = "" // expected error: `Cannot convert value of type 'String' to specified type 'Int'`- The error only appears after running
Swift: Run Swift Script - Replace
""with0, then save the file again - The error only disappears after running
Swift: Run Swift Scriptagain
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working