Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find name 'Deno' #466

Closed
jerrygreen opened this issue Jul 10, 2021 · 27 comments
Closed

Cannot find name 'Deno' #466

jerrygreen opened this issue Jul 10, 2021 · 27 comments
Assignees

Comments

@jerrygreen
Copy link

jerrygreen commented Jul 10, 2021

I did Ctrl+Shift+P -> Initialize Workspace Configuration, which created me .vscode/settings.json:

{
  "deno.enable": true,
  "deno.lint": true,
  "deno.unstable": false
}

And tried restarting Language Server, and restarted VSCode, but still... Nothing helps, the problem occurs:

image

vscode-deno: v3.7.0
deno 1.11.5 (release, x86_64-pc-windows-msvc)
v8 9.1.269.35
typescript 4.3.2
GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)

P.S. I now temporarily use the deprecated justjavac.vscode-deno instead, - it seems to be working. Might get back to denoland.vscode-deno as soon as this issue is resolved!

@martin-braun
Copy link

I can confirm. Deno runs, is accessible globally (PATH containing /usr/local/bin/), but I'm not able to get the language server to suggest or lint in any circumstances, properly.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 12, 2021

@jerrygreen and @martin-braun what is the output of the "Deno Language Server" in vscode. (View | Output then dropdown Deno Language Server)

@jerrygreen
Copy link
Author

jerrygreen commented Jul 12, 2021

@kitsonk here:

image

P.S. I installed Deno using scoop btw.

@martin-braun
Copy link

martin-braun commented Jul 12, 2021

@kitsonk

Starting Deno language server...
  version: 1.11.5 (release, x86_64-apple-darwin)
  executable: /usr/local/bin/deno
Connected to "Visual Studio Code" 1.58.0
language server initialized
Server ready.

I installed deno using brew.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 12, 2021

Ok, something is strange going on with these situations, which isn't typical, which seems that they are specific to the environment and not something we have accounted for.

@jerrygreen you are getting duplicate diagnostics as well, from both the built in language server. In the example before, it was just a single folder workspace? Have you adjusted any of the deno settings globally? Just trying to find what makes your environment different to try to narrow down the problem to fix it.

I am think of a few things I would like to know, but they aren't easily exposed to try to narrow down what is going on. One thing that would help is when you are in a situation similar to the above, where when you hover over the Deno diagnostic, then do Ctrl+Shift+P Deno: Language Server Status. It will open up a markdown document and if you could expand the first collapsable item and post that.

but I'm not able to get the language server to suggest or lint in any circumstances, properly

@martin-braun could you be more specific about what you are encountering? Like are you getting incorrect diagnostics, no diagnostics, etc.? Also what are you .vscode/settings.json.

@martin-braun
Copy link

martin-braun commented Jul 13, 2021

@kitsonk My settings.json looks right, just like Jerrys. But here it gets weird: I was getting no suggestions at all, hovering would do nothing, the whole lint-ing wasn't working. I also restarted VSCode without luck. Then, I disabled the extension and got the deprecated extension by @axetroy, because it was better than nothing.

Today I disabled his and enabled the official extension again to fulfill your request regarding the output of the "Deno Language Server" and now everything works. Could this be related?

Or maybe this is related instead: Some time after installing the extension I learned that I have to deno link to get lint for new imports, so could it be that this fixed the issue with the extension?

If so, I think it might be worth to find a way to automate this in the background, because it wasn't clear enough and was causing confusion to me.

@jerrygreen maybe you can try to deno link yourFile.js and after that hit F1, type "restart window" and confirm. Maybe this fixes your issues as well.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 13, 2021

deno link is not a sub-command, did you mean deno lint, and no, there should be no interaction between the language server's ability to do deno lint and getting lint diagnostics. There are some situations where the diagnostics don't update within the language server and currently you don't get diagnostics (linting or otherwise) for files that are not open in your editor.

@jerrygreen
Copy link
Author

jerrygreen commented Jul 13, 2021

@kitsonk

Deno: Language Server Status. It will open up a markdown document and if you could expand the first collapsable item and post that

Here:

image

In the example before, it was just a single folder workspace? Have you adjusted any of the deno settings globally? Just trying to find what makes your environment different to try to narrow down the problem to fix it.

Single workspace folder, - yes. Just .vscode/settings.json I posted earlier, and one simple "Hello World" script in .ts, no more files than that.

Have you adjusted any of the deno settings globally?

That is harder to answer.

Not sure if any of this helps but a story to the context: I installed Deno probably a year ago on my current PC, ofc it was outdated since then, so I decided to install it again with:

curl -fsSL https://deno.land/x/install/install.sh | sh

Using this bash version:

GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)

Which, I believe, is automatically installed altogether with git on Windows.

So deno did update itself, and actually the cli was working fine, but when I tried to write a script, I encountered this issue with the extension. Then I noticed this installation mechanism is recommended for Mac and Linux, but for Windows, Deno Website proposes two other ways: Choco and Scoop. "Shouldn't be the reason", - I thought, but just in case, I deleted deno with:

rm -rf $HOME/.deno

And then installed it with scoop, a recommended way for Windows (recommended by deno.land):

scoop install deno

But soon after I figured that nothing has changed: I faced the same problem again: Cannot find name 'Deno'. And, of course, in-between the steps I restarted VSCode, total of 3-4 restarts or so. Only then I come here to create this issue.

Honestly I doubt it's all useful info, since @martin-braun is using macos, but is facing the same issue. But that's pretty much all the context, I think. Btw... Does this extension only works for Linux?

Also, a side note: when I am using this denoland.vscode-deno extension, it seems it's conflicting with ts in many many cases, for example:

image

@kitsonk
Copy link
Contributor

kitsonk commented Jul 13, 2021

Honestly I doubt it's all useful info, since @martin-braun is using macos, but is facing the same issue

Nope. It appears @martin-braun was something totally different. He wasn't getting any diagnostics at all, and adjusting a few things appears to have resolved it.

@dsherret anything specifically you can think of that might be causing problems from a Windows perspective with the above?

Also, a side note: when I am using this denoland.vscode-deno extension, it seems it's conflicting with ts in many many cases, for example:

Yes, that is because the built in language server for TypeScript isn't being "muted" for some reason. I think that in part is part of the problem. Versions prior to v3 of the extension (and the deprecated ones) modified the built in language server. As of v3, the Deno CLI is the language server and so we "mute" the diagnostics coming from the built in TypeScript language server when deno.enabled is true. That should mean that you shouldn't get diagnostics from both deno-ts and ts like the screenshot above when things are working properly, which they aren't.

Ok, one more bit of troubleshooting if you don't mind. Ctrl+Shit+P and then TypeScript: Open TS Server log. It might complain that it isn't enabled, and if you could enable it and restart and then get back to the point where it is a Deno enabled project but it is all wrong. In the log there will be some log entries from the language service plugin we use which might help figure out what is going wrong.

Thanks for bearing with this.

@martin-braun
Copy link

deno link is not a sub-command

sorry I meant deno info yourFile.js. Was a bit late when I posted that comment.

@jerrygreen
Copy link
Author

jerrygreen commented Jul 13, 2021

@kitsonk

TypeScript: Open TS Server log. It might complain that it isn't enabled, and if you could enable it and restart and then get back to the point where it is a Deno enabled project but it is all wrong. In the log there will be some log entries from the language service plugin we use which might help figure out what is going wrong

There's a big file, more than 1mb of data, even though it's just a few seconds of tsserver running. In case it is exposing some sensitive data, like unwanted env variables or something, I have sent it to your email, rather than sharing here.

Just on a glance, I'm suspecting something isn't right with this line:

Starting updateGraphWorker: Project: /dev/null/inferredProject1*

I'm not sure what's GraphWorker, but:

  1. /dev/null in overall sounds like a quite weird place for a project
  2. Windows doesn't have /dev/null (well, unless tsserver is using pc-msys bash that I mentioned earlier, - /dev/null is emulated there)

That's just a quick assumption, ofc... Maybe that's intended. You know better, maybe you'll find more useful intel there :)

P.S. actual project path is c:/Users/Jerry/projects/MrGreen, - it is mentioned, too, so it clearly sees the project. My overall project structure is simple:

  • c:/Users/Jerry/projects/MrGreen - project folder I opened in VSCode
  • c:/Users/Jerry/projects/MrGreen/test.ts - "Hello World"-type of a file where I try this deno extension
  • c:/Users/Jerry/projects/MrGreen/.vscode/settings.json - deno extension settings I pasted earlier

@dsherret
Copy link
Member

The extension has worked fine for me on Windows, but the one thing I've noticed is that only when I debug the extension (not when I launch it normally), is occasionally I will have the same issue as above, but it is fixed by closing the .ts file and then reopening it again or clicking into a different file then going back to that one. I wonder if this same issue occurs even without debugging. I've been trying to reproduce it again, but I'm unable to at the moment.

Hopefully the logs show something going on.

@jerrygreen
Copy link
Author

jerrygreen commented Jul 13, 2021

@dsherret no, I wasn't in debug mode. I've tried creating other files and switching between them, closing one, then re-opening, but none of that helped. Maybe kitsonk will be able to find something in the logs

@jerrygreen maybe you can try to deno link info yourFile.js and after that hit F1, type "restart window" and confirm. Maybe this fixes your issues as well.

No, I tried this deno info test.ts command, but this didn't help either. Did you resolve your issue, @martin-braun?

@martin-braun
Copy link

@jerrygreen You got a bunch of green checks and no errors? Hmm, yes the issue is solved for me, I think we do not share the same issue.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 13, 2021

deno link is not a sub-command

sorry I meant deno info yourFile.js. Was a bit late when I posted that comment.

deno info or deno cache effectively do the same thing as Deno: Cache Dependencies and are the way of fetching remote modules and populating the local cache.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 13, 2021

There's a big file, more than 1mb of data, even though it's just a few seconds of tsserver running. In case it is exposing some sensitive data, like unwanted env variables or something, I have sent it to your email, rather than sharing here.

Understood. kitson at deno dot com if you want.

Just on a glance, I'm suspecting something isn't right with this line:

Starting updateGraphWorker: Project: /dev/null/inferredProject1*

It doesn't have anything to do with Deno or what Deno does. I think it is part of the TypeScript language service itself. I agree it is odd, but if you are curious, we are looking for the lines that contain [typescript-deno-plugin] (but other lines around it might be informative as well. To be honest, I am not sure what we are looking for.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 13, 2021

Thanks @jerrygreen for the information.

Looking at the logs. I am starting to wonder if it is a path normalization that is going on that we aren't expecting or varies on windows, and so when we "lookup" a path, in the plugin, we don't find it, so by default we enable it, but this path normalization difference doesn't always seem to occur on windows. I am trying to boot up my ole Windows VM to investigate further.

@jerrygreen could you provide specifics about your Windows version and whether you are using WSL or WSL2?

@jerrygreen
Copy link
Author

jerrygreen commented Jul 14, 2021

@kitsonk I use Windows 10, and what I already mentioned earlier:

GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)

I.e. I'm currently using no WSL, no WSL 2, no hyper-v, no vagrant, no other virtual systems.

For console/terminal I use no even PowerShell or cmd, just pure bash I just mentioned, - which comes with git, and this bash works perfectly for NodeJS projects, and for NextJS projects (from which Deno takes a lot of inspiration lately). Most VSCode extensions for this stack do work well, too: like default ts with its language server, third-party extensions like Prettier, etc.

Some other programming languages are working fine with this environment, too. For example, Haxe and its related Haxe VSCode extension, which also has its own language server, and works perfectly fine, too (linter, autocomplete, etc, - all with no WSL, like the ts language server).

Language servers are a hard craft though, it seems not all the language servers work perfectly fine on Windows... For example, I once tried to use AssemblyScript with their related VSCode extension, and they seem to have some purely linux dependencies for it, i.e. require WSL: Shopify/vscode-as#20

I didn't see anywhere that Deno extension requires WSL because of some linux dependencies or that only WSL is supported mentioned anywhere, but I hope there won't be such a need: deno executable works perfectly fine without virtualization systems, so I kinda expect that Deno VSCode extension also has no dependencies on linux or WSL.

P.S. Sorry for this long-read, I'm just little sensible when it comes to WSL and virtualization: I wouldn't like the idea of having an entire system within a system within a system (imagine we add docker to this). For servers, it might help to make inescapable, safe sandbox environments, - but that's another story. As for desktop PCs... One system should be enough.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 14, 2021

I didn't see anywhere that Deno extension requires WSL because of some linux dependencies or that only WSL is supported mentioned anywhere

It doesn't, I am just trying to figure out what is different about your environment.

Actually, I have been using powershell instead of GNU bash on my windows VM. I will try that and see if it causes problems.

@kitsonk kitsonk self-assigned this Jul 19, 2021
@janispritzkau
Copy link

janispritzkau commented Jul 23, 2021

I just found a solution for me. I had the Volar extension installed which somehow must have conflicted with the Deno language server. How didn't I think of disabling other extensions.

Previously, I had to disable the built-in Typescript language server and manually restart the deno language server as a workaround.

@janispritzkau
Copy link

janispritzkau commented Jul 23, 2021

Also, #466 #455 #437 seem to be all duplicate issues. Anyone having this issue should check for unexpected conflicts with other extensions.

@jerrygreen
Copy link
Author

jerrygreen commented Jul 23, 2021

@janispritzkau good idea, but as you can see on this screenshot: only the Deno extension is enabled, - and I didn't forget to restart VSCode, also tried restarting Deno Language Server, but all again it emits the same errors:

image

So in this particular issue, it's not a conflict between some extensions

@kitsonk
Copy link
Contributor

kitsonk commented Jul 23, 2021

@jerrygreen I am narrowing your situation down, I believe it is denoland/deno#11498. I can see by the screenshot of the status page somehow some of the lib files were "in memory" which indicates they were open or somehow referenced in code somewhere.

@jerrygreen
Copy link
Author

jerrygreen commented Jul 23, 2021

@kitsonk yes!

After what you've said, I remembered VSCode has such an experimental feature:

"typescript.tsserver.experimental.enableProjectDiagnostics": true

It is one cool feature making your "Problems" tab to show errors/warnings all around the whole project, instead of just open files.

But unfortunatelly It's currently hugely bugged, because sometimes it unexpectedly goes into sources of libraries, rather than just project code. I tried disabling this setting, and yes, - now Deno extension works:

image

I guess since it's narrowed down, we can close this issue, in a hope that these two issues will get resolved sometime:

@InSuperposition
Copy link

I encountered this issue after adding a tsconfig.json file for a client code using SSR, due separate deno-lint issue.

error: TS2584 [ERROR]: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.

My solution was to delete ts config file and restart VS code.

example repo here:
https://github.com/InSuperposition/react_ssr_deno

@stagas
Copy link

stagas commented Aug 9, 2021

If you are using a custom tsconfig.json with Deno and getting this message, the solution is to add "deno.ns" to lib:

  "compilerOptions": {
    "lib": [
      "esnext",
      "dom",
      "deno.ns"
    ]

@roechsli
Copy link

Hi @kitsonk

I am still experiencing this exact same issue on windows.
I tried restarting my machine, VS Code, and opening / closing all files several times without any luck.

It seems that I haven't enabled the enableProjectDiagnostics, but still face these issues.

image

image

image

Deno Language Server Status

Workspace Settings

{
  "enable": true,
  "disablePaths": [],
  "enablePaths": [
    "supabase/functions"
  ],
  "cache": null,
  "cacheOnSave": true,
  "certificateStores": null,
  "config": null,
  "importMap": "./supabase/functions/import_map.json",
  "codeLens": {
    "implementations": false,
    "references": false,
    "referencesAllFunctions": false,
    "test": false
  },
  "internalDebug": false,
  "internalInspect": false,
  "logFile": false,
  "lint": true,
  "documentPreloadLimit": 1000,
  "suggest": {
    "imports": {
      "autoDiscover": true,
      "hosts": {
        "https://deno.land": true
      }
    }
  },
  "testing": {
    "args": [
      "--allow-all",
      "--no-check"
    ]
  },
  "tlsCertificate": null,
  "unsafelyIgnoreCertificateErrors": null,
  "unstable": false,
  "javascript": {
    "inlayHints": {
      "parameterNames": {
        "enabled": "none",
        "suppressWhenArgumentMatchesName": true
      },
      "parameterTypes": {
        "enabled": false
      },
      "variableTypes": {
        "enabled": false,
        "suppressWhenTypeMatchesName": true
      },
      "propertyDeclarationTypes": {
        "enabled": false
      },
      "functionLikeReturnTypes": {
        "enabled": false
      },
      "enumMemberValues": {
        "enabled": false
      }
    },
    "preferences": {
      "importModuleSpecifier": "shortest",
      "jsxAttributeCompletionStyle": "auto",
      "autoImportFileExcludePatterns": [],
      "useAliasesForRenames": true,
      "quoteStyle": "auto"
    },
    "suggest": {
      "completeFunctionCalls": false,
      "includeAutomaticOptionalChainCompletions": true,
      "includeCompletionsForImportStatements": true,
      "names": true,
      "paths": true,
      "autoImports": true,
      "enabled": true,
      "classMemberSnippets": {
        "enabled": true
      },
      "objectLiteralMethodSnippets": {
        "enabled": true
      }
    },
    "updateImportsOnFileMove": {
      "enabled": "prompt"
    }
  },
  "typescript": {
    "inlayHints": {
      "parameterNames": {
        "enabled": "none",
        "suppressWhenArgumentMatchesName": true
      },
      "parameterTypes": {
        "enabled": false
      },
      "variableTypes": {
        "enabled": false,
        "suppressWhenTypeMatchesName": true
      },
      "propertyDeclarationTypes": {
        "enabled": false
      },
      "functionLikeReturnTypes": {
        "enabled": false
      },
      "enumMemberValues": {
        "enabled": false
      }
    },
    "preferences": {
      "importModuleSpecifier": "shortest",
      "jsxAttributeCompletionStyle": "auto",
      "autoImportFileExcludePatterns": [],
      "useAliasesForRenames": true,
      "quoteStyle": "auto"
    },
    "suggest": {
      "completeFunctionCalls": false,
      "includeAutomaticOptionalChainCompletions": true,
      "includeCompletionsForImportStatements": true,
      "names": true,
      "paths": true,
      "autoImports": true,
      "enabled": true,
      "classMemberSnippets": {
        "enabled": true
      },
      "objectLiteralMethodSnippets": {
        "enabled": true
      }
    },
    "updateImportsOnFileMove": {
      "enabled": "prompt"
    }
  }
}

Workspace Details

  • Documents in memory: 3
    • file:///C:/Users/user/Documents/programming/app/dashboard/app/tsconfig.json
    • file:///C:/Users/user/Documents/programming/app/dashboard/supabase/functions/.vscode/settings.json
    • file:///C:/Users/user/Documents/programming/app/dashboard/supabase/functions/sign-up-user/index.ts
  • Performance measures: 444
    • lsp.did_change_watched_files (0.01ms)
    • lsp.did_change (0.068ms)
    • lsp.did_change (0.021ms)
    • lsp.did_change (0.021ms)
    • lsp.did_change (0.025ms)
    • lsp.did_change (0.03ms)
    • lsp.did_change (0.023ms)
    • lsp.did_open (0.808ms)
    • tsc.request.$projectChanged (0.512ms)
    • tsc.host.$projectChanged (0.344ms)
    • lsp.semantic_tokens_full (6.148ms)
    • tsc.request.getEncodedSemanticClassifications (6.048ms)
    • tsc.host.getEncodedSemanticClassifications (5.835ms)
    • lsp.did_close (0.381ms)
    • tsc.request.$projectChanged (0.308ms)
    • tsc.host.$projectChanged (0.163ms)
    • lsp.did_change_watched_files (0.008ms)
    • lsp.did_change (0.032ms)
    • lsp.did_change (0.027ms)
    • lsp.did_change (0.037ms)
    • lsp.did_change (0.024ms)
    • lsp.semantic_tokens_full (5.236ms)
    • tsc.request.getEncodedSemanticClassifications (5.15ms)
    • tsc.host.getEncodedSemanticClassifications (4.854ms)
    • tsc.op.op_script_names (0.343ms)
    • lsp.did_change_watched_files (0.016ms)
    • lsp.did_change (0.035ms)
    • lsp.did_change (0.038ms)
    • lsp.did_open (1.872ms)
    • tsc.request.$projectChanged (1.039ms)
    • tsc.host.$projectChanged (0.689ms)
    • lsp.semantic_tokens_full (12.791ms)
    • tsc.request.getEncodedSemanticClassifications (12.639ms)
    • tsc.host.getEncodedSemanticClassifications (12.254ms)
    • tsc.op.op_ts_config (0.063ms)
    • tsc.op.op_script_names (0.546ms)
    • lsp.update_diagnostics_ts (0.089ms)
    • lsp.update_diagnostics_lint (0.308ms)
    • lsp.update_diagnostics_deps (0.313ms)
    • lsp.testing_update (0.051ms)
    • lsp.did_change_configuration (12.959ms)
    • tsc.request.$projectChanged (0.418ms)
    • tsc.host.$projectChanged (0.162ms)
    • lsp.update_registries (2.975ms)
    • lsp.update_cache (0ms)
    • lsp.update_diagnostics_ts (0.076ms)
    • lsp.update_diagnostics_lint (6.031ms)
    • lsp.testing_update (0.04ms)
    • lsp.update_diagnostics_deps (0.09ms)
    • lsp.did_change_configuration (16.102ms)
    • tsc.request.$projectChanged (1.464ms)
    • tsc.host.$projectChanged (0.161ms)
    • lsp.update_registries (3.235ms)
    • lsp.update_cache (0ms)
    • lsp.update_diagnostics_ts (0.11ms)
    • lsp.update_diagnostics_lint (0.108ms)
    • lsp.update_diagnostics_deps (0.11ms)
    • lsp.testing_update (0.048ms)
    • lsp.did_change_configuration (10.485ms)
    • tsc.request.$projectChanged (0.29ms)
    • tsc.host.$projectChanged (0.162ms)
    • lsp.update_registries (2.186ms)
    • lsp.update_cache (0.001ms)
    • lsp.update_diagnostics_ts (0.084ms)
    • lsp.update_diagnostics_lint (1.094ms)
    • lsp.update_diagnostics_deps (1.145ms)
    • lsp.testing_update (0.049ms)
    • lsp.did_change_configuration (20.794ms)
    • tsc.request.$projectChanged (0.821ms)
    • tsc.host.$projectChanged (0.253ms)
    • lsp.update_registries (2.64ms)
    • lsp.update_cache (0.001ms)
    • lsp.semantic_tokens_range (2881.308ms)
    • tsc.request.getEncodedSemanticClassifications (2881.216ms)
    • tsc.host.getEncodedSemanticClassifications (4.628ms)
    • lsp.semantic_tokens_full (3350.925ms)
    • tsc.request.getEncodedSemanticClassifications (3350.81ms)
    • tsc.host.getEncodedSemanticClassifications (3349.976ms)
    • tsc.op.op_is_node_file (0.015ms)
    • tsc.op.op_is_node_file (0.02ms)
    • tsc.op.op_is_node_file (0.016ms)
    • tsc.op.op_is_node_file (0.014ms)
    • tsc.op.op_is_node_file (0.019ms)
    • tsc.op.op_is_node_file (0.014ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.005ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.004ms)
    • tsc.op.op_is_node_file (0.005ms)
    • tsc.op.op_is_node_file (0.007ms)
    • tsc.op.op_is_node_file (0.013ms)
    • tsc.op.op_is_node_file (0.007ms)
    • tsc.op.op_is_node_file (0.033ms)
    • tsc.op.op_load (0.228ms)
    • tsc.op.op_resolve (0.59ms)
    • tsc.op.op_load (0.318ms)
    • tsc.op.op_load (0.265ms)
    • tsc.op.op_resolve (0.27ms)
    • tsc.op.op_load (0.255ms)
    • tsc.op.op_resolve (0.328ms)
    • tsc.op.op_load (0.294ms)
    • tsc.op.op_resolve (0.319ms)
    • tsc.op.op_load (0.358ms)
    • tsc.op.op_resolve (3.119ms)
    • tsc.op.op_load (0.563ms)
    • tsc.op.op_load (0.342ms)
    • tsc.op.op_resolve (2.388ms)
    • tsc.op.op_load (0.283ms)
    • tsc.op.op_resolve (0.578ms)
    • tsc.op.op_load (0.285ms)
    • tsc.op.op_resolve (0.277ms)
    • tsc.op.op_load (0.222ms)
    • tsc.op.op_resolve (1.91ms)
    • tsc.op.op_load (0.286ms)
    • tsc.op.op_resolve (18.786ms)
    • tsc.op.op_load (0.203ms)
    • tsc.op.op_resolve (0.348ms)
    • tsc.op.op_load (0.221ms)
    • tsc.op.op_resolve (0.486ms)
    • tsc.op.op_load (0.295ms)
    • tsc.op.op_load (0.222ms)
    • tsc.op.op_resolve (0.278ms)
    • tsc.op.op_load (0.27ms)
    • tsc.op.op_load (0.229ms)
    • tsc.op.op_resolve (0.601ms)
    • tsc.op.op_load (0.32ms)
    • tsc.op.op_resolve (6.711ms)
    • tsc.op.op_load (0.286ms)
    • tsc.op.op_resolve (4.474ms)
    • tsc.op.op_load (0.281ms)
    • tsc.op.op_resolve (0.341ms)
    • tsc.op.op_load (0.264ms)
    • tsc.op.op_resolve (0.728ms)
    • tsc.op.op_load (0.368ms)
    • tsc.op.op_load (0.293ms)
    • tsc.op.op_resolve (2.47ms)
    • tsc.op.op_load (0.313ms)
    • tsc.op.op_resolve (0.358ms)
    • tsc.op.op_load (0.224ms)
    • tsc.op.op_resolve (0.297ms)
    • tsc.op.op_load (0.354ms)
    • tsc.op.op_load (0.284ms)
    • tsc.op.op_resolve (0.456ms)
    • tsc.op.op_load (0.362ms)
    • tsc.op.op_resolve (4.001ms)
    • tsc.op.op_load (0.255ms)
    • tsc.op.op_resolve (0.575ms)
    • tsc.op.op_load (0.301ms)
    • tsc.op.op_resolve (0.751ms)
    • tsc.op.op_load (0.278ms)
    • tsc.op.op_resolve (0.546ms)
    • tsc.op.op_load (0.483ms)
    • tsc.op.op_resolve (28.656ms)
    • tsc.op.op_load (0.497ms)
    • tsc.op.op_resolve (12.254ms)
    • tsc.op.op_load (0.525ms)
    • tsc.op.op_resolve (22.121ms)
    • tsc.op.op_load (7.433ms)
    • tsc.op.op_load (0.441ms)
    • tsc.op.op_resolve (61.965ms)
    • tsc.op.op_load (15.052ms)
    • tsc.op.op_load (0.4ms)
    • tsc.op.op_load (0.399ms)
    • tsc.op.op_resolve (11.473ms)
    • tsc.op.op_load (0.186ms)
    • tsc.op.op_resolve (0.241ms)
    • tsc.op.op_load (0.18ms)
    • tsc.op.op_resolve (1.663ms)
    • tsc.op.op_load (0.239ms)
    • tsc.op.op_load (0.376ms)
    • tsc.op.op_load (0.226ms)
    • tsc.op.op_load (0.447ms)
    • tsc.op.op_resolve (12.684ms)
    • tsc.op.op_load (0.341ms)
    • tsc.op.op_resolve (8.236ms)
    • tsc.op.op_load (0.508ms)
    • tsc.op.op_resolve (0.454ms)
    • tsc.op.op_load (0.37ms)
    • tsc.op.op_load (0.212ms)
    • tsc.op.op_resolve (0.296ms)
    • tsc.op.op_load (0.276ms)
    • tsc.op.op_resolve (0.593ms)
    • tsc.op.op_load (0.278ms)
    • tsc.op.op_resolve (0.482ms)
    • tsc.op.op_load (0.361ms)
    • tsc.op.op_resolve (7.035ms)
    • tsc.op.op_load (0.22ms)
    • tsc.op.op_resolve (0.531ms)
    • tsc.op.op_load (0.299ms)
    • tsc.op.op_resolve (13.44ms)
    • tsc.op.op_load (0.297ms)
    • tsc.op.op_load (0.243ms)
    • tsc.op.op_resolve (0.328ms)
    • tsc.op.op_load (0.306ms)
    • tsc.op.op_resolve (2.881ms)
    • tsc.op.op_load (0.237ms)
    • tsc.op.op_resolve (3.181ms)
    • tsc.op.op_load (0.273ms)
    • tsc.op.op_resolve (9.025ms)
    • tsc.op.op_load (0.448ms)
    • tsc.op.op_resolve (4.963ms)
    • tsc.op.op_load (0.227ms)
    • tsc.op.op_load (0.396ms)
    • tsc.op.op_load (0.217ms)
    • tsc.op.op_load (0.214ms)
    • tsc.op.op_load (0.242ms)
    • tsc.op.op_load (0.216ms)
    • tsc.op.op_load (0.23ms)
    • tsc.op.op_resolve (1.028ms)
    • tsc.op.op_load (0.193ms)
    • tsc.op.op_load (0.215ms)
    • tsc.op.op_load (0.218ms)
    • tsc.op.op_load (0.235ms)
    • tsc.op.op_load (0.222ms)
    • tsc.op.op_resolve (1.218ms)
    • tsc.op.op_load (0.209ms)
    • tsc.op.op_load (0.233ms)
    • tsc.op.op_load (0.192ms)
    • tsc.op.op_resolve (0.235ms)
    • tsc.op.op_load (0.217ms)
    • tsc.op.op_load (0.231ms)
    • tsc.op.op_load (0.191ms)
    • tsc.op.op_load (0.192ms)
    • tsc.op.op_load (0.227ms)
    • tsc.op.op_load (0.216ms)
    • tsc.op.op_load (0.302ms)
    • tsc.op.op_load (0.291ms)
    • tsc.op.op_load (0.31ms)
    • tsc.op.op_load (0.299ms)
    • tsc.op.op_load (0.219ms)
    • tsc.op.op_resolve (0.292ms)
    • tsc.op.op_load (0.283ms)
    • tsc.op.op_load (0.274ms)
    • tsc.op.op_load (0.186ms)
    • tsc.op.op_resolve (0.478ms)
    • tsc.op.op_load (0.293ms)
    • tsc.op.op_load (1.78ms)
    • tsc.op.op_resolve (0.963ms)
    • tsc.op.op_load (0.496ms)
    • tsc.op.op_resolve (16.333ms)
    • tsc.op.op_load (0.565ms)
    • tsc.op.op_load (0.248ms)
    • tsc.op.op_resolve (11.855ms)
    • tsc.op.op_load (0.537ms)
    • tsc.op.op_resolve (5.115ms)
    • tsc.op.op_load (0.244ms)
    • tsc.op.op_resolve (3.425ms)
    • tsc.op.op_load (5.642ms)
    • tsc.op.op_resolve (2.237ms)
    • tsc.op.op_load (0.225ms)
    • tsc.op.op_resolve (4.29ms)
    • tsc.op.op_load (0.188ms)
    • tsc.op.op_load (0.19ms)
    • tsc.op.op_load (0.189ms)
    • tsc.op.op_load (0.206ms)
    • tsc.op.op_load (0.234ms)
    • tsc.op.op_load (0.248ms)
    • tsc.op.op_load (2.912ms)
    • tsc.op.op_load (0.515ms)
    • tsc.op.op_load (0.313ms)
    • tsc.op.op_load (1.195ms)
    • tsc.op.op_load (7.57ms)
    • tsc.op.op_load (0.192ms)
    • tsc.op.op_load (0.196ms)
    • tsc.op.op_load (0.202ms)
    • tsc.op.op_load (0.207ms)
    • tsc.op.op_load (0.206ms)
    • tsc.op.op_load (0.214ms)
    • tsc.op.op_resolve (0.236ms)
    • tsc.op.op_load (0.22ms)
    • tsc.op.op_resolve (1.272ms)
    • tsc.op.op_load (0.216ms)
    • tsc.op.op_resolve (1.257ms)
    • tsc.op.op_load (0.264ms)
    • tsc.op.op_load (0.213ms)
    • tsc.op.op_load (0.221ms)
    • tsc.op.op_resolve (0.231ms)
    • tsc.op.op_load (0.299ms)
    • tsc.op.op_resolve (1.564ms)
    • tsc.op.op_load (0.209ms)
    • tsc.op.op_resolve (3.929ms)
    • tsc.op.op_load (0.192ms)
    • tsc.op.op_load (0.245ms)
    • tsc.op.op_load (0.216ms)
    • tsc.op.op_load (0.258ms)
    • tsc.op.op_resolve (2.24ms)
    • tsc.op.op_load (0.238ms)
    • tsc.op.op_load (0.273ms)
    • tsc.op.op_resolve (46.334ms)
    • tsc.op.op_load (0.212ms)
    • tsc.op.op_load (0.212ms)
    • tsc.op.op_resolve (0.288ms)
    • tsc.op.op_load (0.239ms)
    • tsc.op.op_resolve (1.754ms)
    • tsc.op.op_load (0.272ms)
    • tsc.op.op_resolve (9.082ms)
    • tsc.op.op_load (0.287ms)
    • tsc.op.op_load (0.43ms)
    • tsc.op.op_resolve (4.002ms)
    • tsc.op.op_load (3.064ms)
    • tsc.op.op_load (0.542ms)
    • tsc.op.op_resolve (5.104ms)
    • tsc.op.op_load (0.204ms)
    • tsc.op.op_resolve (5.02ms)
    • tsc.op.op_load (0.225ms)
    • tsc.op.op_load (0.209ms)
    • tsc.op.op_load (0.255ms)
    • tsc.op.op_resolve (1.938ms)
    • tsc.op.op_load (0.199ms)
    • tsc.op.op_resolve (0.332ms)
    • tsc.op.op_load (0.205ms)
    • tsc.op.op_resolve (0.588ms)
    • tsc.op.op_load (0.22ms)
    • tsc.op.op_resolve (0.201ms)
    • tsc.op.op_load (0.196ms)
    • tsc.op.op_resolve (0.214ms)
    • tsc.op.op_load (0.21ms)
    • tsc.op.op_resolve (0.439ms)
    • tsc.op.op_load (0.203ms)
    • tsc.op.op_resolve (0.339ms)
    • tsc.op.op_load (0.245ms)
    • tsc.op.op_load (0.19ms)
    • tsc.op.op_load (0.221ms)
    • tsc.op.op_resolve (4.34ms)
    • tsc.op.op_load (0.239ms)
    • tsc.op.op_resolve (19.947ms)
    • tsc.op.op_load (0.22ms)
    • tsc.op.op_resolve (0.389ms)
    • tsc.op.op_load (0.388ms)
    • tsc.op.op_resolve (6.158ms)
    • tsc.op.op_load (0.2ms)
    • tsc.op.op_resolve (1.228ms)
    • tsc.op.op_load (0.417ms)
    • tsc.op.op_load (0.213ms)
    • tsc.op.op_resolve (0.25ms)
    • tsc.op.op_load (0.257ms)
    • tsc.op.op_resolve (2.286ms)
    • tsc.op.op_load (0.272ms)
    • tsc.op.op_resolve (19.471ms)
    • tsc.op.op_load (0.256ms)
    • tsc.op.op_load (0.194ms)
    • tsc.op.op_load (0.239ms)
    • tsc.op.op_resolve (1.026ms)
    • tsc.op.op_load (0.26ms)
    • tsc.op.op_load (0.185ms)
    • tsc.op.op_resolve (0.293ms)
    • tsc.op.op_load (0.199ms)
    • tsc.op.op_resolve (3.603ms)
    • tsc.op.op_load (0.144ms)
    • tsc.op.op_load (0.146ms)
    • tsc.op.op_resolve (3.71ms)
    • tsc.op.op_load (0.294ms)
    • tsc.op.op_load (0.255ms)
    • tsc.op.op_resolve (3.388ms)
    • tsc.op.op_load (0.192ms)
    • tsc.op.op_load (0.233ms)
    • tsc.op.op_load (0.546ms)
    • tsc.op.op_resolve (44.662ms)
    • tsc.op.op_load (0.197ms)
    • tsc.op.op_load (0.235ms)
    • tsc.op.op_load (0.205ms)
    • tsc.op.op_resolve (3.27ms)
    • tsc.op.op_load (0.201ms)
    • tsc.op.op_resolve (1.419ms)
    • tsc.op.op_load (0.207ms)
    • tsc.op.op_resolve (51.375ms)
    • tsc.op.op_load (0.189ms)
    • tsc.op.op_resolve (6.38ms)
    • tsc.op.op_load (0.357ms)
    • tsc.op.op_load (0.204ms)
    • tsc.op.op_resolve (0.252ms)
    • tsc.op.op_load (0.191ms)
    • tsc.op.op_resolve (0.289ms)
    • tsc.op.op_load (0.252ms)
    • tsc.op.op_load (0.2ms)
    • tsc.op.op_load (0.235ms)
    • tsc.op.op_load (0.177ms)
    • tsc.op.op_resolve (6.021ms)
    • tsc.op.op_load (0.215ms)
    • tsc.op.op_resolve (3.158ms)
    • tsc.op.op_load (0.108ms)
    • tsc.op.op_resolve (0.15ms)
    • tsc.op.op_load (0.246ms)
    • tsc.op.op_resolve (0.493ms)
    • tsc.op.op_load (0.132ms)
    • tsc.op.op_resolve (4.838ms)
    • tsc.op.op_load (0.201ms)
    • tsc.op.op_resolve (3.978ms)
    • lsp.update_diagnostics_ts (0.221ms)
    • tsc.op.op_load (0.169ms)
    • tsc.op.op_resolve (0.189ms)
    • tsc.op.op_load (0.178ms)
    • tsc.op.op_load (0.01ms)
    • tsc.op.op_load (0.016ms)
    • tsc.op.op_load (0.017ms)
    • tsc.op.op_load (0.227ms)
    • tsc.op.op_load (0.234ms)
    • tsc.op.op_load (0.206ms)
    • tsc.op.op_load (0.226ms)
    • tsc.op.op_load (0.325ms)
    • tsc.op.op_load (0.25ms)
    • tsc.op.op_load (0.141ms)
    • tsc.op.op_resolve (7.267ms)
    • tsc.op.op_load (0.132ms)
    • tsc.op.op_resolve (9.229ms)
    • tsc.op.op_load (0.238ms)
    • tsc.op.op_resolve (2.592ms)
    • tsc.op.op_load (0.225ms)
    • tsc.op.op_resolve (29.948ms)
    • tsc.op.op_load (0.157ms)
    • tsc.op.op_resolve (0.736ms)
    • tsc.op.op_load (0.152ms)
    • tsc.op.op_resolve (1.344ms)
    • tsc.op.op_load (0.056ms)
    • tsc.op.op_ts_config (0.033ms)
    • tsc.op.op_script_names (0.367ms)
    • lsp.update_diagnostics_lint (0.076ms)
    • lsp.testing_update (0.055ms)
    • lsp.update_diagnostics_deps (0.106ms)
    • lsp.did_open (4.055ms)
    • tsc.request.$projectChanged (2.634ms)
    • tsc.host.$projectChanged (0.222ms)
    • lsp.update_diagnostics_ts (0.013ms)
    • lsp.update_diagnostics_lint (1.807ms)
    • lsp.update_diagnostics_deps (1.878ms)
    • tsc.request.$projectChanged (0.99ms)
    • tsc.host.$projectChanged (0.173ms)
    • lsp.initialize (236.073ms)
    • tsc.request.$getAssets (14.232ms)
    • tsc.host.$getAssets (11.567ms)
    • lsp.update_registries (10.582ms)
    • tsc.request.$getSupportedCodeFixes (199.056ms)
    • tsc.host.$getSupportedCodeFixes (1.014ms)
    • lsp.update_cache (0.003ms)

Performance (last 3 000 entries)

Name Count Duration
lsp.did_change 12 0.032ms
lsp.did_change_configuration 4 15.085ms
lsp.did_change_watched_files 3 0.011ms
lsp.did_close 1 0.381ms
lsp.did_open 3 2.245ms
lsp.initialize 1 236.073ms
lsp.semantic_tokens_full 4 843.775ms
lsp.semantic_tokens_range 1 2881.308ms
lsp.testing_update 5 0.049ms
lsp.update_cache 5 0.001ms
lsp.update_diagnostics_deps 6 0.607ms
lsp.update_diagnostics_lint 6 1.57ms
lsp.update_diagnostics_ts 6 0.099ms
lsp.update_registries 5 4.323ms
tsc.host.$getAssets 1 11.567ms
tsc.host.$getSupportedCodeFixes 1 1.014ms
tsc.host.$projectChanged 9 0.259ms
tsc.host.getEncodedSemanticClassifications 5 675.51ms
tsc.op.op_is_node_file 25 0.009ms
tsc.op.op_load 207 0.463ms
tsc.op.op_resolve 113 5.593ms
tsc.op.op_script_names 3 0.419ms
tsc.op.op_ts_config 2 0.048ms
tsc.request.$getAssets 1 14.232ms
tsc.request.$getSupportedCodeFixes 1 199.056ms
tsc.request.$projectChanged 9 0.942ms
tsc.request.getEncodedSemanticClassifications 5 1251.172ms

Performance (total)

Name Count Duration
lsp.did_change 12 0.381ms
lsp.did_change_configuration 4 60.340ms
lsp.did_change_watched_files 3 0.034ms
lsp.did_close 1 0.381ms
lsp.did_open 3 6.735ms
lsp.initialize 1 236.073ms
lsp.semantic_tokens_full 4 3375.100ms
lsp.semantic_tokens_range 1 2881.308ms
lsp.testing_update 5 0.243ms
lsp.update_cache 5 0.005ms
lsp.update_diagnostics_deps 6 3.642ms
lsp.update_diagnostics_lint 6 9.424ms
lsp.update_diagnostics_ts 6 0.593ms
lsp.update_registries 5 21.618ms
lsp.virtual_text_document 1 0.000ms
tsc.host.$getAssets 1 11.567ms
tsc.host.$getSupportedCodeFixes 1 1.014ms
tsc.host.$projectChanged 9 2.329ms
tsc.host.getEncodedSemanticClassifications 5 3377.547ms
tsc.op.op_is_node_file 25 0.220ms
tsc.op.op_load 207 95.943ms
tsc.op.op_resolve 113 632.000ms
tsc.op.op_script_names 3 1.256ms
tsc.op.op_ts_config 2 0.096ms
tsc.request.$getAssets 1 14.232ms
tsc.request.$getSupportedCodeFixes 1 199.056ms
tsc.request.$projectChanged 9 8.476ms
tsc.request.getEncodedSemanticClassifications 5 6255.863ms

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants