This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Info 0 [12:07:35.204] Starting TS Server | |
Info 1 [12:07:35.204] Version: 4.8.0-dev.20220624 | |
Info 2 [12:07:35.204] Arguments: /var/lib/snapd/snap/code/98/usr/share/code/code <monorepo>/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/8d5608a5201fd0346a46/tscancellation-e3dd2cd3f55047a86e50.tmp* --logVerbosity verbose --logFile <home_dir>/.config/Code/logs/20220619T144611/exthost1/vscode.typescript-language-features/tsserver-log-St7bVs/tsserver.log --globalPlugins typescript-styled-plugin,@vsintellicode/typescript-intellicode-plugin --pluginProbeLocations <home_dir>/.vscode/extensions/styled-components.vscode-styled-components-1.7.4,<home_dir>/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.21 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc | |
Info 3 [12:07:35.204] Platform: linux NodeVersion: 16 CaseSensitive: true | |
Info 4 [12:07:35.204] ServerMode: undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function usePromise(promise, args) { | |
const [results, setResults] = useState(null); | |
const [error, setError] = useState(null); | |
useEffect(() => { | |
let isCurrent = true; | |
promise(...args) | |
.then((payload) => { | |
if (!isCurrent) return; |