{"id":89428,"date":"2026-08-03T00:32:51","date_gmt":"2026-08-02T16:32:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89428.html"},"modified":"2026-08-03T00:32:51","modified_gmt":"2026-08-02T16:32:51","slug":"ai%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91vs-code-%e6%95%b4%e4%bd%93%e6%9e%b6%e6%9e%84%e5%9b%be-day06","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89428.html","title":{"rendered":"AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06"},"content":{"rendered":"<p>\u53c2\u8003\u8d44\u6599&#xff1a; Monaco Editor \u4e2d\u6587\u6587\u6863\u6574\u7406 Language Server \u67b6\u6784\u7ec6\u8282&#xff1a;LSP \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u8be6\u89e3 \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u673a\u5236\u8be6\u89e3<\/p>\n<h3>\u4e00\u3001VS Code \u5206\u5c42\u603b\u67b6\u6784&#xff08;\u6838\u5fc3\u56db\u5c42&#xff09;<\/h3>\n<li>\u524d\u7aefUI\u5c42&#xff08;Electron Renderer \u6e32\u67d3\u8fdb\u7a0b&#xff09;<\/li>\n<li>\u6838\u5fc3\u4e1a\u52a1\u5c42&#xff08;Monaco Editor &#043; VS Code \u5de5\u4f5c\u53f0Workbench&#xff09;<\/li>\n<li>\u540e\u7aef\u670d\u52a1\u5c42&#xff08;Electron Main \u4e3b\u8fdb\u7a0b \/ \u8fdc\u7a0b\u670d\u52a1&#xff09;<\/li>\n<li>\u6269\u5c55\u7cfb\u7edf&#xff08;Extension Host \u6269\u5c55\u5bbf\u4e3b\u8fdb\u7a0b&#xff09;<\/li>\n<h3>\u4e8c\u3001Mermaid \u67b6\u6784\u56fe&#xff08;\u6a2a\u5411\u5206\u5c42\u67b6\u6784&#xff09;<\/h3>\n<p>  #mermaid-svg-C4xhbLWRaZwR8mKA{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-C4xhbLWRaZwR8mKA .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-C4xhbLWRaZwR8mKA .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-C4xhbLWRaZwR8mKA .error-icon{fill:#552222;}#mermaid-svg-C4xhbLWRaZwR8mKA .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-C4xhbLWRaZwR8mKA .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-C4xhbLWRaZwR8mKA .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-C4xhbLWRaZwR8mKA .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-C4xhbLWRaZwR8mKA .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-C4xhbLWRaZwR8mKA .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-C4xhbLWRaZwR8mKA .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-C4xhbLWRaZwR8mKA .marker{fill:#333333;stroke:#333333;}#mermaid-svg-C4xhbLWRaZwR8mKA .marker.cross{stroke:#333333;}#mermaid-svg-C4xhbLWRaZwR8mKA svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-C4xhbLWRaZwR8mKA p{margin:0;}#mermaid-svg-C4xhbLWRaZwR8mKA .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-C4xhbLWRaZwR8mKA .cluster-label text{fill:#333;}#mermaid-svg-C4xhbLWRaZwR8mKA .cluster-label span{color:#333;}#mermaid-svg-C4xhbLWRaZwR8mKA .cluster-label span p{background-color:transparent;}#mermaid-svg-C4xhbLWRaZwR8mKA .label text,#mermaid-svg-C4xhbLWRaZwR8mKA span{fill:#333;color:#333;}#mermaid-svg-C4xhbLWRaZwR8mKA .node rect,#mermaid-svg-C4xhbLWRaZwR8mKA .node circle,#mermaid-svg-C4xhbLWRaZwR8mKA .node ellipse,#mermaid-svg-C4xhbLWRaZwR8mKA .node polygon,#mermaid-svg-C4xhbLWRaZwR8mKA .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-C4xhbLWRaZwR8mKA .rough-node .label text,#mermaid-svg-C4xhbLWRaZwR8mKA .node .label text,#mermaid-svg-C4xhbLWRaZwR8mKA .image-shape .label,#mermaid-svg-C4xhbLWRaZwR8mKA .icon-shape .label{text-anchor:middle;}#mermaid-svg-C4xhbLWRaZwR8mKA .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-C4xhbLWRaZwR8mKA .rough-node .label,#mermaid-svg-C4xhbLWRaZwR8mKA .node .label,#mermaid-svg-C4xhbLWRaZwR8mKA .image-shape .label,#mermaid-svg-C4xhbLWRaZwR8mKA .icon-shape .label{text-align:center;}#mermaid-svg-C4xhbLWRaZwR8mKA .node.clickable{cursor:pointer;}#mermaid-svg-C4xhbLWRaZwR8mKA .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-C4xhbLWRaZwR8mKA .arrowheadPath{fill:#333333;}#mermaid-svg-C4xhbLWRaZwR8mKA .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-C4xhbLWRaZwR8mKA .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-C4xhbLWRaZwR8mKA .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-C4xhbLWRaZwR8mKA .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-C4xhbLWRaZwR8mKA .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-C4xhbLWRaZwR8mKA .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-C4xhbLWRaZwR8mKA .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-C4xhbLWRaZwR8mKA .cluster text{fill:#333;}#mermaid-svg-C4xhbLWRaZwR8mKA .cluster span{color:#333;}#mermaid-svg-C4xhbLWRaZwR8mKA div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-C4xhbLWRaZwR8mKA .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-C4xhbLWRaZwR8mKA rect.text{fill:none;stroke-width:0;}#mermaid-svg-C4xhbLWRaZwR8mKA .icon-shape,#mermaid-svg-C4xhbLWRaZwR8mKA .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-C4xhbLWRaZwR8mKA .icon-shape p,#mermaid-svg-C4xhbLWRaZwR8mKA .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-C4xhbLWRaZwR8mKA .icon-shape .label rect,#mermaid-svg-C4xhbLWRaZwR8mKA .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-C4xhbLWRaZwR8mKA .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-C4xhbLWRaZwR8mKA .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-C4xhbLWRaZwR8mKA :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u8bed\u8a00\u670d\u52a1 LSP<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u5171\u4eab\u6838\u5fc3\u670d\u52a1&#xff08;Common&#xff09;<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u8fdc\u7a0b\u652f\u6301 Remote Development<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Main \u4e3b\u8fdb\u7a0b\u3010Electron\u3011<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Extension Host \u6269\u5c55\u5bbf\u4e3b\u8fdb\u7a0b<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Renderer \u6e32\u67d3\u8fdb\u7a0b\u3010UI\u5c42\u3011<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u5916\u90e8\u5ba2\u6237\u7aef<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u6d4f\u89c8\u5668Web\u7248(vscode-web)<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u684c\u9762\u5ba2\u6237\u7aef(Electron)<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Workbench \u5de5\u4f5c\u53f0\u83dc\u5355\u680f\/\u4fa7\u8fb9\u680f\/\u72b6\u6001\u680f\/\u9762\u677f<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Monaco Editor\u4ee3\u7801\u7f16\u8f91\u5668\u6838\u5fc3\u8bed\u6cd5\u9ad8\u4eae\u3001\u667a\u80fd\u63d0\u793a\u3001\u6298\u53e0\u3001\u9009\u4e2d<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u57fa\u7840UI\u7ec4\u4ef6\u5bf9\u8bdd\u6846\u3001\u901a\u77e5\u3001\u8f93\u5165\u6846\u3001\u6811\u89c6\u56fe<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>VS Code Extension API<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u7b2c\u4e09\u65b9\u63d2\u4ef6\u8bed\u8a00\u63d2\u4ef6\u3001\u683c\u5f0f\u5316\u3001Git\u3001Linter<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>IPC\u901a\u4fe1\u901a\u9053\u8fdb\u7a0b\u95f4\u6d88\u606f\u901a\u4fe1<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u8bbf\u95ee<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u7a97\u53e3\u7ba1\u7406\u5668<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u7f51\u7edc\u6a21\u5757<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u7ec8\u7aef\u670d\u52a1\u4ee3\u7406<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>SSH\u8fdc\u7a0b<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u5bb9\u5668\u5f00\u53d1<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>WSL\u8fdc\u7a0b<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Remote Server Code Server<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u914d\u7f6e\u670d\u52a1 settings.json<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u65e5\u5fd7\u670d\u52a1<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u6301\u4e45\u5316\u5b58\u50a8\u7f13\u5b58\u3001\u5168\u5c40\u72b6\u6001<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u4e3b\u9898\u7cfb\u7edf<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Language Server Protocol<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u5404\u7c7b\u8bed\u8a00\u670d\u52a1\u5668Pyright\u3001tsserver\u3001gopls\u7b49<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Main<\/p>\n<p><\/span><\/p>\n<h3>\u4e09\u3001\u7cbe\u7b80\u5782\u76f4\u5206\u5c42\u7248\u672c<\/h3>\n<p>  #mermaid-svg-pRgmcdaLhbjBZmCO{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-pRgmcdaLhbjBZmCO .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-pRgmcdaLhbjBZmCO .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-pRgmcdaLhbjBZmCO .error-icon{fill:#552222;}#mermaid-svg-pRgmcdaLhbjBZmCO .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-pRgmcdaLhbjBZmCO .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-pRgmcdaLhbjBZmCO .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-pRgmcdaLhbjBZmCO .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-pRgmcdaLhbjBZmCO .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-pRgmcdaLhbjBZmCO .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-pRgmcdaLhbjBZmCO .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-pRgmcdaLhbjBZmCO .marker{fill:#333333;stroke:#333333;}#mermaid-svg-pRgmcdaLhbjBZmCO .marker.cross{stroke:#333333;}#mermaid-svg-pRgmcdaLhbjBZmCO svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-pRgmcdaLhbjBZmCO p{margin:0;}#mermaid-svg-pRgmcdaLhbjBZmCO .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-pRgmcdaLhbjBZmCO .cluster-label text{fill:#333;}#mermaid-svg-pRgmcdaLhbjBZmCO .cluster-label span{color:#333;}#mermaid-svg-pRgmcdaLhbjBZmCO .cluster-label span p{background-color:transparent;}#mermaid-svg-pRgmcdaLhbjBZmCO .label text,#mermaid-svg-pRgmcdaLhbjBZmCO span{fill:#333;color:#333;}#mermaid-svg-pRgmcdaLhbjBZmCO .node rect,#mermaid-svg-pRgmcdaLhbjBZmCO .node circle,#mermaid-svg-pRgmcdaLhbjBZmCO .node ellipse,#mermaid-svg-pRgmcdaLhbjBZmCO .node polygon,#mermaid-svg-pRgmcdaLhbjBZmCO .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-pRgmcdaLhbjBZmCO .rough-node .label text,#mermaid-svg-pRgmcdaLhbjBZmCO .node .label text,#mermaid-svg-pRgmcdaLhbjBZmCO .image-shape .label,#mermaid-svg-pRgmcdaLhbjBZmCO .icon-shape .label{text-anchor:middle;}#mermaid-svg-pRgmcdaLhbjBZmCO .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-pRgmcdaLhbjBZmCO .rough-node .label,#mermaid-svg-pRgmcdaLhbjBZmCO .node .label,#mermaid-svg-pRgmcdaLhbjBZmCO .image-shape .label,#mermaid-svg-pRgmcdaLhbjBZmCO .icon-shape .label{text-align:center;}#mermaid-svg-pRgmcdaLhbjBZmCO .node.clickable{cursor:pointer;}#mermaid-svg-pRgmcdaLhbjBZmCO .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-pRgmcdaLhbjBZmCO .arrowheadPath{fill:#333333;}#mermaid-svg-pRgmcdaLhbjBZmCO .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-pRgmcdaLhbjBZmCO .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-pRgmcdaLhbjBZmCO .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-pRgmcdaLhbjBZmCO .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-pRgmcdaLhbjBZmCO .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-pRgmcdaLhbjBZmCO .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-pRgmcdaLhbjBZmCO .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-pRgmcdaLhbjBZmCO .cluster text{fill:#333;}#mermaid-svg-pRgmcdaLhbjBZmCO .cluster span{color:#333;}#mermaid-svg-pRgmcdaLhbjBZmCO div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-pRgmcdaLhbjBZmCO .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-pRgmcdaLhbjBZmCO rect.text{fill:none;stroke-width:0;}#mermaid-svg-pRgmcdaLhbjBZmCO .icon-shape,#mermaid-svg-pRgmcdaLhbjBZmCO .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-pRgmcdaLhbjBZmCO .icon-shape p,#mermaid-svg-pRgmcdaLhbjBZmCO .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-pRgmcdaLhbjBZmCO .icon-shape .label rect,#mermaid-svg-pRgmcdaLhbjBZmCO .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-pRgmcdaLhbjBZmCO .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-pRgmcdaLhbjBZmCO .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-pRgmcdaLhbjBZmCO :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>IPC\u6d88\u606f<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>RPC<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u7528\u6237\u8f93\u5165\/\u4ea4\u4e92<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u3010\u6e32\u67d3\u8fdb\u7a0b Renderer\u3011Workbench\u5de5\u4f5c\u53f0 &#043; Monaco\u7f16\u8f91\u5668<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u3010\u4e3b\u8fdb\u7a0b Main\u3011\u6587\u4ef6\u3001\u7a97\u53e3\u3001\u7f51\u7edc\u3001\u7ec8\u7aef<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u3010\u6269\u5c55\u5bbf\u4e3b Extension Host\u3011\u63d2\u4ef6\u8fd0\u884c\u6c99\u7bb1 &#043; Extension API<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>LSP\u8bed\u8a00\u670d\u52a1\u5668\u4ee3\u7801\u8865\u5168\u3001\u8bca\u65ad\u3001\u91cd\u6784<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Remote\u8fdc\u7a0b\u670d\u52a1SSH\/WSL\/\u5bb9\u5668<\/p>\n<p><\/span><\/p>\n<h2>\u56db\u3001\u6587\u5b57\u7248\u67b6\u6784\u8bf4\u660e<\/h2>\n<h3>1. Electron \u591a\u8fdb\u7a0b\u6a21\u578b<\/h3>\n<ul>\n<li>Main \u4e3b\u8fdb\u7a0b&#xff1a;Electron \u5165\u53e3&#xff0c;\u62e5\u6709\u64cd\u4f5c\u7cfb\u7edf\u6743\u9650&#xff0c;\u8bfb\u5199\u6587\u4ef6\u3001\u521b\u5efa\u7a97\u53e3\u3001\u7ba1\u7406\u7ec8\u7aef&#xff1b;\u4e0d\u5904\u7406\u754c\u9762\u6e32\u67d3<\/li>\n<li>Renderer \u6e32\u67d3\u8fdb\u7a0b&#xff1a;\u7f51\u9875\u6280\u672f&#xff08;HTML\/CSS\/JS&#xff09;\u6e32\u67d3\u754c\u9762&#xff0c;Workbench &#043; Monaco \u8fd0\u884c\u5728\u6b64&#xff1b;\u6743\u9650\u53d7\u9650<\/li>\n<li>Extension Host&#xff08;\u72ec\u7acb\u8fdb\u7a0b&#xff09; \u2705 \u63d2\u4ef6\u72ec\u7acb\u8fdb\u7a0b\u8fd0\u884c&#xff0c;\u63d2\u4ef6\u5d29\u6e83\u4e0d\u4f1a\u8ba9\u6574\u4e2aVS Code\u95ea\u9000&#xff1b; \u2705 \u901a\u8fc7API\u9694\u79bb&#xff0c;\u63d2\u4ef6\u4e0d\u80fd\u76f4\u63a5\u8bbf\u95ee\u5e95\u5c42\u7cfb\u7edf\u8d44\u6e90<\/li>\n<\/ul>\n<h3>2. Monaco Editor<\/h3>\n<p>\u72ec\u7acb\u5f00\u6e90\u4ee3\u7801\u7f16\u8f91\u5668\u5185\u6838&#xff0c;\u548cVS Code\u89e3\u8026&#xff0c;\u53ef\u5355\u72ec\u5d4c\u5165\u7f51\u9875&#xff08;vscode-web\u6838\u5fc3\u5c31\u662fMonaco&#xff09;&#xff0c;\u53ea\u8d1f\u8d23\u7f16\u8f91\u80fd\u529b&#xff0c;\u4e0d\u542b\u4fa7\u8fb9\u680f\u3001Git\u3001\u7ec8\u7aef\u7b49\u5de5\u4f5c\u53f0\u529f\u80fd\u3002<\/p>\n<h3>3. LSP \u8bed\u8a00\u670d\u52a1\u534f\u8bae<\/h3>\n<p>VS Code\u672c\u8eab\u4e0d\u5185\u7f6e\u5404\u79cd\u8bed\u8a00\u89e3\u6790\u5668&#xff0c;\u901a\u8fc7LSP\u534f\u8bae\u548c\u5916\u90e8\u8bed\u8a00\u670d\u52a1\u5668\u901a\u4fe1&#xff0c;\u5b9e\u73b0\u8de8\u8bed\u8a00\u667a\u80fd\u63d0\u793a\u3002<\/p>\n<h3>4. Remote \u8fdc\u7a0b\u67b6\u6784<\/h3>\n<p>\u672c\u5730VS Code\u754c\u9762&#xff08;Renderer&#xff09;\u53ea\u8d1f\u8d23UI&#xff0c;\u771f\u6b63\u7684\u6587\u4ef6\u89e3\u6790\u3001\u7f16\u8bd1\u3001\u7ec8\u7aef\u8fd0\u884c\u5728\u8fdc\u7aef\u670d\u52a1\u5668\/WSL\/\u5bb9\u5668&#xff0c;\u4f9d\u9760code-server\u4f5c\u4e3a\u540e\u7aef\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802163245-6a6f712dcf633.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\u8d44\u6599&#xff1a; Monaco Editor \u4e2d\u6587\u6587\u6863\u6574\u7406 Language Server \u67b6\u6784\u7ec6\u8282&#xff1a;LSP \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u8be6\u89e3 \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u673a\u5236\u8be6\u89e3 \u4e00\u3001VS Code \u5206\u5c42\u603b\u67b6\u6784&#xff08;\u6838\u5fc3\u56db\u5c42&#xff09;<br \/>\n\u524d\u7aefUI\u5c42&#xff08;Electron Renderer \u6e32\u67d3\u8fdb\u7a0b&#xff09;\u6838\u5fc3\u4e1a\u52a1\u5c42&#xff08;Monaco Editor  VS Code \u5de5\u4f5c<\/p>\n","protected":false},"author":2,"featured_media":89427,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,76],"topic":[],"class_list":["post-89428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","tag-vscode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/89428.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u53c2\u8003\u8d44\u6599&#xff1a; Monaco Editor \u4e2d\u6587\u6587\u6863\u6574\u7406 Language Server \u67b6\u6784\u7ec6\u8282&#xff1a;LSP \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u8be6\u89e3 \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u673a\u5236\u8be6\u89e3 \u4e00\u3001VS Code \u5206\u5c42\u603b\u67b6\u6784&#xff08;\u6838\u5fc3\u56db\u5c42&#xff09; \u524d\u7aefUI\u5c42&#xff08;Electron Renderer \u6e32\u67d3\u8fdb\u7a0b&#xff09;\u6838\u5fc3\u4e1a\u52a1\u5c42&#xff08;Monaco Editor VS Code \u5de5\u4f5c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89428.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-02T16:32:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802163245-6a6f712dcf633.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89428.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89428.html\",\"name\":\"AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-02T16:32:51+00:00\",\"dateModified\":\"2026-08-02T16:32:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89428.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89428.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89428.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/89428.html","og_locale":"zh_CN","og_type":"article","og_title":"AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u53c2\u8003\u8d44\u6599&#xff1a; Monaco Editor \u4e2d\u6587\u6587\u6863\u6574\u7406 Language Server \u67b6\u6784\u7ec6\u8282&#xff1a;LSP \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u8be6\u89e3 \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u673a\u5236\u8be6\u89e3 \u4e00\u3001VS Code \u5206\u5c42\u603b\u67b6\u6784&#xff08;\u6838\u5fc3\u56db\u5c42&#xff09; \u524d\u7aefUI\u5c42&#xff08;Electron Renderer \u6e32\u67d3\u8fdb\u7a0b&#xff09;\u6838\u5fc3\u4e1a\u52a1\u5c42&#xff08;Monaco Editor VS Code \u5de5\u4f5c","og_url":"https:\/\/www.wsisp.com\/helps\/89428.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-02T16:32:51+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802163245-6a6f712dcf633.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89428.html","url":"https:\/\/www.wsisp.com\/helps\/89428.html","name":"AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-02T16:32:51+00:00","dateModified":"2026-08-02T16:32:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89428.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89428.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89428.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"AI\u5e94\u7528\u5f00\u53d1(VS Code \u6574\u4f53\u67b6\u6784\u56fe)-Day06"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=89428"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89428\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/89427"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89428"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}