@@ -1963,6 +1963,7 @@ declare namespace ts.server.protocol {
19631963 System = "System" ,
19641964 ES6 = "ES6" ,
19651965 ES2015 = "ES2015" ,
1966+ ESNext = "ESNext" ,
19661967 }
19671968 const enum ModuleResolutionKind {
19681969 Classic = "Classic" ,
@@ -1977,6 +1978,9 @@ declare namespace ts.server.protocol {
19771978 ES5 = "ES5" ,
19781979 ES6 = "ES6" ,
19791980 ES2015 = "ES2015" ,
1981+ ES2016 = "ES2016" ,
1982+ ES2017 = "ES2017" ,
1983+ ESNext = "ESNext" ,
19801984 }
19811985}
19821986declare namespace ts . server . protocol {
@@ -1998,6 +2002,81 @@ declare namespace ts.server.protocol {
19982002 position : number ;
19992003 }
20002004
2005+ enum HighlightSpanKind {
2006+ none = "none" ,
2007+ definition = "definition" ,
2008+ reference = "reference" ,
2009+ writtenReference = "writtenReference" ,
2010+ }
2011+
2012+ enum ScriptElementKind {
2013+ unknown = "" ,
2014+ warning = "warning" ,
2015+ /** predefined type (void) or keyword (class) */
2016+ keyword = "keyword" ,
2017+ /** top level script node */
2018+ scriptElement = "script" ,
2019+ /** module foo {} */
2020+ moduleElement = "module" ,
2021+ /** class X {} */
2022+ classElement = "class" ,
2023+ /** var x = class X {} */
2024+ localClassElement = "local class" ,
2025+ /** interface Y {} */
2026+ interfaceElement = "interface" ,
2027+ /** type T = ... */
2028+ typeElement = "type" ,
2029+ /** enum E */
2030+ enumElement = "enum" ,
2031+ enumMemberElement = "enum member" ,
2032+ /**
2033+ * Inside module and script only
2034+ * const v = ..
2035+ */
2036+ variableElement = "var" ,
2037+ /** Inside function */
2038+ localVariableElement = "local var" ,
2039+ /**
2040+ * Inside module and script only
2041+ * function f() { }
2042+ */
2043+ functionElement = "function" ,
2044+ /** Inside function */
2045+ localFunctionElement = "local function" ,
2046+ /** class X { [public|private]* foo() {} } */
2047+ memberFunctionElement = "method" ,
2048+ /** class X { [public|private]* [get|set] foo:number; } */
2049+ memberGetAccessorElement = "getter" ,
2050+ memberSetAccessorElement = "setter" ,
2051+ /**
2052+ * class X { [public|private]* foo:number; }
2053+ * interface Y { foo:number; }
2054+ */
2055+ memberVariableElement = "property" ,
2056+ /** class X { constructor() { } } */
2057+ constructorImplementationElement = "constructor" ,
2058+ /** interface Y { ():number; } */
2059+ callSignatureElement = "call" ,
2060+ /** interface Y { []:number; } */
2061+ indexSignatureElement = "index" ,
2062+ /** interface Y { new():Y; } */
2063+ constructSignatureElement = "construct" ,
2064+ /** function foo(*Y*: string) */
2065+ parameterElement = "parameter" ,
2066+ typeParameterElement = "type parameter" ,
2067+ primitiveType = "primitive type" ,
2068+ label = "label" ,
2069+ alias = "alias" ,
2070+ constElement = "const" ,
2071+ letElement = "let" ,
2072+ directory = "directory" ,
2073+ externalModuleName = "external module name" ,
2074+ /**
2075+ * <JsxTagName attribute1 attribute2={0} />
2076+ */
2077+ jsxAttribute = "JSX attribute" ,
2078+ }
2079+
20012080 interface TypeAcquisition {
20022081 enableAutoDiscovery ?: boolean ;
20032082 enable ?: boolean ;
@@ -2033,8 +2112,6 @@ declare namespace ts.server.protocol {
20332112}
20342113declare namespace ts {
20352114 // these types are empty stubs for types from services and should not be used directly
2036- export type HighlightSpanKind = never ;
2037- export type ScriptElementKind = never ;
20382115 export type ScriptKind = never ;
20392116 export type IndentStyle = never ;
20402117 export type JsxEmit = never ;
0 commit comments