winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.79k stars 189 forks source link

Incremental type checking in LSP #3700

Open Chriscbr opened 11 months ago

Chriscbr commented 11 months ago

Follow-up from #3677

When you have a Wing project with several files opened in your VS Code editor, for example:

// main.w
bring "./store.w" as store;

new store.Store();

// store.w
bring "./util.w" as util;

class Store {
  inflight print() {
    util.info("my message");
  }
}

// util.w
class Util {
  inflight info(message: str) {
    log("INFO: " + message);
  }
}

If you edit any one of these files, all of them will get type checked again. But it should be possible to optimize this:

Chriscbr commented 11 months ago

I might have already addressed this in #3677 (avoiding the need for a follow up PR) so we might end up not needing this issue...

Chriscbr commented 11 months ago

update: I've repurposed the issue to another related LSP improvement. 😅

github-actions[bot] commented 9 months ago

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] commented 4 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] commented 1 month ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!