Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Doesn't recognize Operation from Foundation - only recognizes NSOperation #17

Closed
ghost opened this issue Apr 22, 2018 · 5 comments
Closed

Comments

@ghost
Copy link

ghost commented Apr 22, 2018

I've even set a compiler flag for Swift 4.1 and I'm still not getting Operation recognized as a valid class.

@vknabel
Copy link
Owner

vknabel commented Apr 23, 2018

Thanks for filing an issue!
Do you mean the fact that NSOperation is colorized but Operation not?
Syntax highlighting is not handled by this extension and is part of vscode itself. More details here.

Just in case you meant autocompletion: the extension warns about using NSOperation as it has been deprecated. In that case SDE would use the wrong swift installation and version. You would need to set the swift driver path within your vscode settings to point to swift 4.x.

@ghost
Copy link
Author

ghost commented Apr 23, 2018

To answer your first question, yes. I'll try out your suggestion. Seems like I was changing the wrong vscode setting.

@vknabel
Copy link
Owner

vknabel commented Apr 24, 2018

If your autocompletion for Operation works, your settings are fine.

I will test a bit around with the syntax highlighting. It's weird if vscode's syntax highlighting for Swift is not maintained anymore.

@ghost
Copy link
Author

ghost commented Apr 24, 2018

That might be the case upsettingly. Haven't delved into it too much but my Swift compiler vscode extension settings didn't do me any good.

@vknabel
Copy link
Owner

vknabel commented Jun 2, 2018

Closing in favor of vknabel/All-in-One-Swift-for-vscode#4

@vknabel vknabel closed this as completed Jun 2, 2018
Development automation moved this from To do to Done Jun 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development
  
Done
Development

No branches or pull requests

1 participant