Closed gaetschwartz closed 1 year ago
very strange. i've never seen these errors. i stole that code from the jakt extension. i'm surprised it works there and not here, but then again, i know very little about typescript and had no clue that it requires something unique.
thanks for the pr.
While using the extension I get an error
No such label 'onDefinition' for console.timeEnd()
appearing every few seconds.Output:
Infos
Probable issue
Issue seems to come from this function https://github.com/nushell/vscode-nushell-lang/blob/f657b9a71ef21599f10ed8423776600a6af52727/server/src/server.ts#L113-L126 Indeed,
console.time(label)
andconsole.timeEnd(label)
take unique labels, but here the same label is being reused everytime: https://github.com/nushell/vscode-nushell-lang/blob/f657b9a71ef21599f10ed8423776600a6af52727/server/src/server.ts#L565hence the warning
Warning: Label 'onDefinition' already exists for console.time()