Skip to content

Commit

Permalink
vscode-extension: comment about the difference between isLanguageClie…
Browse files Browse the repository at this point in the history
…ntReady and as3mxmlCodeIntelligenceReady
  • Loading branch information
joshtynjala committed Mar 13, 2024
1 parent df2531f commit b1a32a4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vscode-extension/src/main/ts/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,14 @@ function startClient() {
as3mxmlCodeIntelligenceReady
);
isLanguageClientReady = false;
// NOTE: isLanguageClientReady and as3mxmlCodeIntelligenceReady mean
// different things.
// isLanguageClientReady is true once the language server has started,
// and is communicating with the extension, but that doesn't mean any
// projects have been found. in that case, as3mxmlCodeIntelligenceReady
// will still be false. if a valid asconfig.json file is created, the
// language server will activate a project, and
// as3mxmlCodeIntelligenceReady will be changed to true.
savedLanguageClient = new LanguageClient(
"actionscript",
"ActionScript & MXML Language Server",
Expand Down

0 comments on commit b1a32a4

Please sign in to comment.