浏览代码

Use JavaScript for the language to get syntax highlighting, but not tooling

Orta 5 年之前
父节点
当前提交
86f6d762df
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/workerManager.ts

+ 1 - 1
src/workerManager.ts

@@ -64,7 +64,7 @@ export class WorkerManager {
 			// Adds all of the .d.ts lib files into Monaco as editor models,
 			// this allows themm to show up in peek (and allow editing if desired).
 			for (const key in libFileMap) {
-				monaco.editor.createModel(libFileMap[key], "ts", monaco.Uri.file(key))
+				monaco.editor.createModel(libFileMap[key], "javascript", monaco.Uri.file(key))
 			}
 
 			this._worker = monaco.editor.createWebWorker<TypeScriptWorker>({