@@ -646,131 +646,6 @@ class bar5{ constructor(public /*constructorParameter1*/`,
646646 },
647647 },
648648 },
649- {
650- name : "completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved" ,
651- files : map [string ]string {
652- defaultMainFileName : `import React from 'react'
653- class Slider extends React.Component {
654- static defau/**/ltProps = {
655- onMouseDown: () => { },
656- onMouseUp: () => { },
657- unit: 'px',
658- }
659- handleChange = () => 10;
660- }` ,
661- "/node_modules/@types/react/index.d.ts" : `export = React;
662- export as namespace React;
663- declare namespace React {
664- function createElement(): any;
665- interface Component<P = {}, S = {}, SS = any> { }
666- class Component<P, S> {
667- static contextType?: any;
668- context: any;
669- constructor(props: Readonly<P>);
670- setState<K extends keyof S>(
671- state: ((prevState: Readonly<S>, props: Readonly<P>) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null),
672- callback?: () => void
673- ): void;
674- }
675- }` ,
676- },
677- expectedResult : map [string ]* testCaseResult {
678- "" : {
679- list : & lsproto.CompletionList {
680- IsIncomplete : false ,
681- ItemDefaults : & lsproto.CompletionItemDefaults {
682- CommitCharacters : & []string {},
683- EditRange : & lsproto.RangeOrEditRangeWithInsertReplace {
684- EditRangeWithInsertReplace : & lsproto.EditRangeWithInsertReplace {
685- Insert : lsproto.Range {
686- Start : lsproto.Position {Line : 2 , Character : 11 },
687- End : lsproto.Position {Line : 2 , Character : 16 },
688- },
689- Replace : lsproto.Range {
690- Start : lsproto.Position {Line : 2 , Character : 11 },
691- End : lsproto.Position {Line : 2 , Character : 23 },
692- },
693- },
694- },
695- },
696- Items : []* lsproto.CompletionItem {
697- {
698- Label : "contextType?" ,
699- Kind : fieldKind ,
700- SortText : sortTextLocationPriority ,
701- FilterText : ptrTo ("contextType" ),
702- InsertText : ptrTo ("contextType" ),
703- },
704- {
705- Label : "abstract" ,
706- Kind : keywordKind ,
707- SortText : sortTextGlobalsOrKeywords ,
708- },
709- {
710- Label : "accessor" ,
711- Kind : keywordKind ,
712- SortText : sortTextGlobalsOrKeywords ,
713- },
714- {
715- Label : "async" ,
716- Kind : keywordKind ,
717- SortText : sortTextGlobalsOrKeywords ,
718- },
719- {
720- Label : "constructor" ,
721- Kind : keywordKind ,
722- SortText : sortTextGlobalsOrKeywords ,
723- },
724- {
725- Label : "declare" ,
726- Kind : keywordKind ,
727- SortText : sortTextGlobalsOrKeywords ,
728- },
729- {
730- Label : "get" ,
731- Kind : keywordKind ,
732- SortText : sortTextGlobalsOrKeywords ,
733- },
734- {
735- Label : "override" ,
736- Kind : keywordKind ,
737- SortText : sortTextGlobalsOrKeywords ,
738- },
739- {
740- Label : "private" ,
741- Kind : keywordKind ,
742- SortText : sortTextGlobalsOrKeywords ,
743- },
744- {
745- Label : "protected" ,
746- Kind : keywordKind ,
747- SortText : sortTextGlobalsOrKeywords ,
748- },
749- {
750- Label : "public" ,
751- Kind : keywordKind ,
752- SortText : sortTextGlobalsOrKeywords ,
753- },
754- {
755- Label : "readonly" ,
756- Kind : keywordKind ,
757- SortText : sortTextGlobalsOrKeywords ,
758- },
759- {
760- Label : "set" ,
761- Kind : keywordKind ,
762- SortText : sortTextGlobalsOrKeywords ,
763- },
764- {
765- Label : "static" ,
766- Kind : keywordKind ,
767- SortText : sortTextGlobalsOrKeywords ,
768- },
769- },
770- },
771- },
772- },
773- },
774649 {
775650 name : "completionsInJsxTag" ,
776651 mainFileName : "/index.tsx" ,
0 commit comments