PageSourceSearch

https://cspell.org/assets/js/5b1a2e43.82a9f7b0.js

js cspell.org collected 2026-09-24 19:41:13 UTC 3,409 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwebsite||=[]).push([[17048],{3812(e,t,s){s.r(t),s.d(t,{assets:()=>o,contentTitle:()=>l,default:()=>u,frontMatter:()=>r,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"api/cspell-lib/functions/getSources","title":"Function: getSources()","description":"getSources(settings): OptionalOrUndefined\\\\[]","source":"@site/docs/api/cspell-lib/functions/getSources.md","sourceDirName":"api/cspell-lib/functions","slug":"/api/cspell-lib/functions/getSources","permalink":"/docs/api/cspell-lib/functions/getSources","draft":false,"unlisted":false,"editUrl":"https://github.com/streetsidesoftware/cspell/tree/main/website/docs/api/cspell-lib/functions/getSources.md","tags":[],"version":"current","frontMatter":{},"sidebar":"tutorialSidebar","previous":{"title":"Function: getLogger()","permalink":"/docs/api/cspell-lib/functions/getLogger"},"next":{"title":"Function: getSystemFeatureFlags()","permalink":"/docs/api/cspell-lib/functions/getSystemFeatureFlags"}}');var i=s(85511),c=s(40974);const r={},l="Function: getSources()",o={},d=[{value:"Parameters",id:"parameters",level:2},{value:"settings",id:"settings",level:3},{value:"Returns",id:"returns",level:2}];function a(e){const t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,c.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"function-getsources",children:"Function: getSources()"})}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"getSources"}),"(",(0,i.jsx)(t.code,{children:"settings"}),"): ",(0,i.jsx)(t.code,{children:"OptionalOrUndefined"}),"<",(0,i.jsx)(t.a,{href:"/docs/api/cspell-lib/interfaces/AdvancedCSpellSettingsWithSourceTrace",children:(0,i.jsx)(t.code,{children:"AdvancedCSpellSettingsWithSourceTrace"})}),">[]"]}),"\n"]}),"\n",(0,i.jsxs)(t.p,{children:["Defined in: ",(0,i.jsx)(t.a,{href:"https://github.com/streetsidesoftware/cspell/blob/48dfd92ecce73b20fe8d06d12d6324da7688d02b/packages/cspell-lib/src/lib/Settings/CSpellSettingsServer.ts#L335",children:"packages/cspell-lib/src/lib/Settings/CSpellSettingsServer.ts:335"})]}),"\n",(0,i.jsx)(t.p,{children:"Return a list of Setting Sources used to create this Setting."}),"\n",(0,i.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,i.jsx)(t.h3,{id:"settings",children:"settings"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.code,{children:"CSpellSettingsWSTO"})}),"\n",(0,i.jsx)(t.p,{children:"the settings to search"}),"\n",(0,i.jsx)(t.h2,{id:"returns",children:"Returns"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"OptionalOrUndefined"}),"<",(0,i.jsx)(t.a,{href:"/docs/api/cspell-lib/interfaces/AdvancedCSpellSettingsWithSourceTrace",children:(0,i.jsx)(t.code,{children:"AdvancedCSpellSettingsWithSourceTrace"})}),">[]"]})]})}function u(e={}){const{wrapper:t}={...(0,c.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(a,{...e})}):a(e)}},40974(e,t,s){s.d(t,{R:()=>r,x:()=>l});var n=s(16255);const i={},c=n.createContext(i);function r(e){const t=n.useContext(c);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),n.createElement(c.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.