Repository: TypeScript
Issue: TypeScript LSP crashes when a project with .ts videos is opened
Labels: Needs More Info

Type: <b>Bug</b>

TS Server fatal error:  Cannot create a string longer than 0x1fffffe8 characters

**TypeScript Version:** 5.5.4

**Steps to reproduce crash**

1. Open a project that contains a video with a `.ts` extension
2. Open a typescript source file

**TS Server Log**

[tsserver.log](https://github.com/user-attachments/files/16913079/tsserver.log)

VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z)
OS version: Darwin x64 23.2.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|13th Gen Intel(R) Core(TM) i9-13900K (32 x 3000)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|4, 3, 2|
|Memory (System)|64.00GB (3.93GB free)|
|Process Argv|--crash-reporter-id 77a646e2-87f9-4a1b-994c-3ed1a2768762|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (57)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-color|ans|0.4.5
exemplary|ant|0.0.1
asciidoctor-vscode|asc|3.3.1
biome|bio|2.3.0
vscode-tailwindcss|bra|0.12.10
vsc-jetbrains-icons-enhanced|Bre|2.2.0
js-auto-backticks|cha|1.2.0
dart-code|Dar|3.96.0
flutter|Dar|3.96.0
macos-modern-theme|dav|2.3.19
vscode-eslint|dba|3.0.10
EditorConfig|Edi|0.16.4
vsc-material-theme|Equ|34.5.2
vsc-material-theme-icons|equ|3.8.8
prettier-vscode|esb|11.0.0
copilot|Git|1.229.0
copilot-chat|Git|0.20.0
vscode-pull-request-github|Git|0.96.0
todo-tree|Gru|0.0.226
discord-vscode|icr|5.8.0
elixir-ls|Jak|0.23.1
svg|joc|1.5.4
vscord|Leo|5.2.13
MagicPython|mag|1.1.0
moon-console|moo|0.13.0
vscode-docker|ms-|1.29.2
debugpy|ms-|2024.10.0
python|ms-|2024.14.0
vscode-pylance|ms-|2024.8.2
jupyter|ms-|2024.8.0
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.19
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
remote-containers|ms-|0.384.0
remote-ssh|ms-|0.114.1
remote-ssh-edit|ms-|0.86.0
cmake-tools|ms-|1.19.51
cpptools|ms-|1.21.6
cpptools-extension-pack|ms-|1.3.0
remote-explorer|ms-|0.4.3
remote-server|ms-|1.5.2
bun-vscode|ove|0.0.12
phoenix|pho|0.1.2
platformio-ide|pla|3.3.3
inline-sql-syntax|quf|2.16.0
geo-data-viewer|Ran|2.6.0
vscode-yaml|red|1.15.0
rust-analyzer|rus|0.4.2100
vscode-shadcn-svelte|Sel|0.1.1
solid-snippets|sol|0.1.4
vscode-nushell-lang|The|1.9.0
overpassql-syntax|tqd|2.1.0
type-doc-vscode|Tre|0.0.35
cmake|twx|0.0.17
pretty-ts-errors|Yoa|0.6.0
intellij-ify|zew|1.0.2

(8 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31119336
wkspc-onlycs-t:31132770
wkspc-ranged-t:31125599
ei213698:31121563

```

</details>

<!-- generated by issue reporter -->