Title: vscode tsserver intellisense not working · Issue #33028 · microsoft/TypeScript · GitHub
Open Graph Title: vscode tsserver intellisense not working · Issue #33028 · microsoft/TypeScript
X Title: vscode tsserver intellisense not working · Issue #33028 · microsoft/TypeScript
Description: This is one js file. This file is automatically generated when customizing in the nativebase.io library. However, this file does not work with intellisense on vscode's tsserver. This causes the Intellisense of the entire project containi...
Open Graph Description: This is one js file. This file is automatically generated when customizing in the nativebase.io library. However, this file does not work with intellisense on vscode's tsserver. This causes the Int...
X Description: This is one js file. This file is automatically generated when customizing in the nativebase.io library. However, this file does not work with intellisense on vscode's tsserver. This causes the...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/33028
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"vscode tsserver intellisense not working","articleBody":"This is one js file. \r\nThis file is automatically generated when customizing in the nativebase.io library. \r\nHowever, this file does not work with intellisense on vscode's tsserver. \r\nThis causes the `Intellisense` of the entire project containing this file to hang. \r\nI want to know how to solve it.\r\n\r\n`commonColor.js`\r\n\r\n```js\r\nimport color from 'color';\r\nimport { Platform, Dimensions, PixelRatio } from 'react-native';\r\n\r\nconst PLATFORM = {\r\n ANDROID: 'android',\r\n IOS: 'ios',\r\n MATERIAL: 'material',\r\n WEB: 'web'\r\n};\r\n\r\nconst deviceHeight = Dimensions.get('window').height;\r\nconst deviceWidth = Dimensions.get('window').width;\r\nconst platform = Platform.OS;\r\nconst platformStyle = undefined;\r\nconst isIphoneX =\r\n platform === PLATFORM.IOS &&\r\n (deviceHeight === 812 ||\r\n deviceWidth === 812 ||\r\n deviceHeight === 896 ||\r\n deviceWidth === 896);\r\n\r\nexport default {\r\n platformStyle,\r\n platform,\r\n\r\n // Accordion\r\n headerStyle: '#edebed',\r\n iconStyle: '#000',\r\n contentStyle: '#f5f4f5',\r\n expandedIconStyle: '#000',\r\n accordionBorderColor: '#d3d3d3',\r\n\r\n // ActionSheet\r\n elevation: 4,\r\n containerTouchableBackgroundColor: 'rgba(0,0,0,0.4)',\r\n innerTouchableBackgroundColor: '#fff',\r\n listItemHeight: 50,\r\n listItemBorderColor: 'transparent',\r\n marginHorizontal: -15,\r\n marginLeft: 14,\r\n marginTop: 15,\r\n minHeight: 56,\r\n padding: 15,\r\n touchableTextColor: '#757575',\r\n\r\n // Android\r\n androidRipple: true,\r\n androidRippleColor: 'rgba(256, 256, 256, 0.3)',\r\n androidRippleColorDark: 'rgba(0, 0, 0, 0.15)',\r\n buttonUppercaseAndroidText: true,\r\n\r\n // Badge\r\n badgeBg: '#ED1727',\r\n badgeColor: '#fff',\r\n badgePadding: platform === PLATFORM.IOS ? 3 : 0,\r\n\r\n // Button\r\n buttonFontFamily: platform === PLATFORM.IOS ? 'System' : 'Roboto_medium',\r\n buttonDisabledBg: '#b5b5b5',\r\n buttonPadding: 6,\r\n get buttonPrimaryBg() {\r\n return this.brandPrimary;\r\n },\r\n get buttonPrimaryColor() {\r\n return this.inverseTextColor;\r\n },\r\n get buttonInfoBg() {\r\n return this.brandInfo;\r\n },\r\n get buttonInfoColor() {\r\n return this.inverseTextColor;\r\n },\r\n get buttonSuccessBg() {\r\n return this.brandSuccess;\r\n },\r\n get buttonSuccessColor() {\r\n return this.inverseTextColor;\r\n },\r\n get buttonDangerBg() {\r\n return this.brandDanger;\r\n },\r\n get buttonDangerColor() {\r\n return this.inverseTextColor;\r\n },\r\n get buttonWarningBg() {\r\n return this.brandWarning;\r\n },\r\n get buttonWarningColor() {\r\n return this.inverseTextColor;\r\n },\r\n get buttonTextSize() {\r\n return platform === PLATFORM.IOS\r\n ? this.fontSizeBase * 1.1\r\n : this.fontSizeBase - 1;\r\n },\r\n get buttonTextSizeLarge() {\r\n return this.fontSizeBase * 1.5;\r\n },\r\n get buttonTextSizeSmall() {\r\n return this.fontSizeBase * 0.8;\r\n },\r\n get borderRadiusLarge() {\r\n return this.fontSizeBase * 3.8;\r\n },\r\n get iconSizeLarge() {\r\n return this.iconFontSize * 1.5;\r\n },\r\n get iconSizeSmall() {\r\n return this.iconFontSize * 0.6;\r\n },\r\n\r\n // Card\r\n cardDefaultBg: '#fff',\r\n cardBorderColor: '#ccc',\r\n cardBorderRadius: 2,\r\n cardItemPadding: platform === PLATFORM.IOS ? 10 : 12,\r\n\r\n // CheckBox\r\n CheckboxRadius: platform === PLATFORM.IOS ? 13 : 0,\r\n CheckboxBorderWidth: platform === PLATFORM.IOS ? 1 : 2,\r\n CheckboxPaddingLeft: platform === PLATFORM.IOS ? 4 : 2,\r\n CheckboxPaddingBottom: platform === PLATFORM.IOS ? 0 : 5,\r\n CheckboxIconSize: platform === PLATFORM.IOS ? 21 : 16,\r\n CheckboxIconMarginTop: platform === PLATFORM.IOS ? undefined : 1,\r\n CheckboxFontSize: platform === PLATFORM.IOS ? 23 / 0.9 : 17,\r\n checkboxBgColor: '#039BE5',\r\n checkboxSize: 20,\r\n checkboxTickColor: '#fff',\r\n\r\n // Color\r\n brandPrimary: platform === PLATFORM.IOS ? '#007aff' : '#3F51B5',\r\n brandInfo: '#62B1F6',\r\n brandSuccess: '#5cb85c',\r\n brandDanger: '#d9534f',\r\n brandWarning: '#f0ad4e',\r\n brandDark: '#000',\r\n brandLight: '#f4f4f4',\r\n\r\n // Container\r\n containerBgColor: '#fff',\r\n\r\n // Date Picker\r\n datePickerTextColor: '#000',\r\n datePickerBg: 'transparent',\r\n\r\n // FAB\r\n fabWidth: 56,\r\n\r\n // Font\r\n DefaultFontSize: 16,\r\n fontFamily: platform === PLATFORM.IOS ? 'System' : 'Roboto',\r\n fontSizeBase: 15,\r\n get fontSizeH1() {\r\n return this.fontSizeBase * 1.8;\r\n },\r\n get fontSizeH2() {\r\n return this.fontSizeBase * 1.6;\r\n },\r\n get fontSizeH3() {\r\n return this.fontSizeBase * 1.4;\r\n },\r\n\r\n // Footer\r\n footerHeight: 55,\r\n footerDefaultBg: platform === PLATFORM.IOS ? '#F8F8F8' : '#3F51B5',\r\n footerPaddingBottom: 0,\r\n\r\n // FooterTab\r\n tabBarTextColor: platform === PLATFORM.IOS ? '#737373' : '#bfc6ea',\r\n tabBarTextSize: platform === PLATFORM.IOS ? 14 : 11,\r\n activeTab: platform === PLATFORM.IOS ? '#007aff' : '#fff',\r\n sTabBarActiveTextColor: '#007aff',\r\n tabBarActiveTextColor: platform === PLATFORM.IOS ? '#2874F0' : '#fff',\r\n tabActiveBgColor: platform === PLATFORM.IOS ? '#cde1f9' : '#3F51B5',\r\n\r\n // Header\r\n toolbarBtnColor: platform === PLATFORM.IOS ? '#007aff' : '#fff',\r\n toolbarDefaultBg: platform === PLATFORM.IOS ? '#F8F8F8' : '#3F51B5',\r\n toolbarHeight: platform === PLATFORM.IOS ? 64 : 56,\r\n toolbarSearchIconSize: platform === PLATFORM.IOS ? 20 : 23,\r\n toolbarInputColor: platform === PLATFORM.IOS ? '#CECDD2' : '#fff',\r\n searchBarHeight: platform === PLATFORM.IOS ? 30 : 40,\r\n searchBarInputHeight: platform === PLATFORM.IOS ? 30 : 50,\r\n toolbarBtnTextColor: platform === PLATFORM.IOS ? '#007aff' : '#fff',\r\n iosStatusbar: 'dark-content',\r\n toolbarDefaultBorder: platform === PLATFORM.IOS ? '#a7a6ab' : '#3F51B5',\r\n get statusBarColor() {\r\n return color(this.toolbarDefaultBg)\r\n .darken(0.2)\r\n .hex();\r\n },\r\n get darkenHeader() {\r\n return color(this.tabBgColor)\r\n .darken(0.03)\r\n .hex();\r\n },\r\n\r\n // Icon\r\n iconFamily: 'Ionicons',\r\n iconFontSize: platform === PLATFORM.IOS ? 30 : 28,\r\n iconHeaderSize: platform === PLATFORM.IOS ? 33 : 24,\r\n\r\n // InputGroup\r\n inputFontSize: 17,\r\n inputBorderColor: '#D9D5DC',\r\n inputSuccessBorderColor: '#2b8339',\r\n inputErrorBorderColor: '#ed2f2f',\r\n inputHeightBase: 50,\r\n get inputColor() {\r\n return this.textColor;\r\n },\r\n get inputColorPlaceholder() {\r\n return '#575757';\r\n },\r\n\r\n // Line Height\r\n buttonLineHeight: 19,\r\n lineHeightH1: 32,\r\n lineHeightH2: 27,\r\n lineHeightH3: 22,\r\n lineHeight: platform === PLATFORM.IOS ? 20 : 24,\r\n\r\n // List\r\n listBg: 'transparent',\r\n listBorderColor: '#c9c9c9',\r\n listDividerBg: '#f4f4f4',\r\n listBtnUnderlayColor: '#DDD',\r\n listItemPadding: platform === PLATFORM.IOS ? 10 : 12,\r\n listNoteColor: '#808080',\r\n listNoteSize: 13,\r\n listItemSelected: platform === PLATFORM.IOS ? '#007aff' : '#3F51B5',\r\n\r\n // Progress Bar\r\n defaultProgressColor: '#E4202D',\r\n inverseProgressColor: '#1A191B',\r\n\r\n // Radio Button\r\n radioBtnSize: platform === PLATFORM.IOS ? 25 : 23,\r\n radioSelectedColorAndroid: '#3F51B5',\r\n radioBtnLineHeight: platform === PLATFORM.IOS ? 29 : 24,\r\n get radioColor() {\r\n return this.brandPrimary;\r\n },\r\n\r\n // Segment\r\n segmentBackgroundColor: platform === PLATFORM.IOS ? '#F8F8F8' : '#3F51B5',\r\n segmentActiveBackgroundColor: platform === PLATFORM.IOS ? '#007aff' : '#fff',\r\n segmentTextColor: platform === PLATFORM.IOS ? '#007aff' : '#fff',\r\n segmentActiveTextColor: platform === PLATFORM.IOS ? '#fff' : '#3F51B5',\r\n segmentBorderColor: platform === PLATFORM.IOS ? '#007aff' : '#fff',\r\n segmentBorderColorMain: platform === PLATFORM.IOS ? '#a7a6ab' : '#3F51B5',\r\n\r\n // Spinner\r\n defaultSpinnerColor: '#45D56E',\r\n inverseSpinnerColor: '#1A191B',\r\n\r\n // Tab\r\n tabDefaultBg: platform === PLATFORM.IOS ? '#F8F8F8' : '#3F51B5',\r\n topTabBarTextColor: platform === PLATFORM.IOS ? '#6b6b6b' : '#b3c7f9',\r\n topTabBarActiveTextColor: platform === PLATFORM.IOS ? '#007aff' : '#fff',\r\n topTabBarBorderColor: platform === PLATFORM.IOS ? '#a7a6ab' : '#fff',\r\n topTabBarActiveBorderColor: platform === PLATFORM.IOS ? '#007aff' : '#fff',\r\n\r\n // Tabs\r\n tabBgColor: '#F8F8F8',\r\n tabFontSize: 15,\r\n\r\n // Text\r\n textColor: '#000',\r\n inverseTextColor: '#fff',\r\n noteFontSize: 14,\r\n get defaultTextColor() {\r\n return this.textColor;\r\n },\r\n\r\n // Title\r\n titleFontfamily: platform === PLATFORM.IOS ? 'System' : 'Roboto_medium',\r\n titleFontSize: platform === PLATFORM.IOS ? 17 : 19,\r\n subTitleFontSize: platform === PLATFORM.IOS ? 11 : 14,\r\n subtitleColor: platform === PLATFORM.IOS ? '#000' : '#fff',\r\n titleFontColor: platform === PLATFORM.IOS ? '#000' : '#fff',\r\n\r\n // Other\r\n borderRadiusBase: platform === PLATFORM.IOS ? 5 : 2,\r\n borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\r\n contentPadding: 10,\r\n dropdownLinkColor: '#414142',\r\n inputLineHeight: 24,\r\n deviceWidth,\r\n deviceHeight,\r\n isIphoneX,\r\n inputGroupRoundedBorderRadius: 30,\r\n\r\n // iPhoneX SafeArea\r\n Inset: {\r\n portrait: {\r\n topInset: 24,\r\n leftInset: 0,\r\n rightInset: 0,\r\n bottomInset: 34\r\n },\r\n landscape: {\r\n topInset: 0,\r\n leftInset: 44,\r\n rightInset: 44,\r\n bottomInset: 21\r\n }\r\n }\r\n};\r\n```","author":{"url":"https://github.com/yahao87","@type":"Person","name":"yahao87"},"datePublished":"2019-08-22T12:54:03Z","url":"https://github.com/microsoft/TypeScript/issues/33028"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e7437c5d-4dbe-cdfd-fc54-c54923584ada |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9090:23CF06:212A436:2A435DE:6B0162BD |
| html-safe-nonce | e654b88b47ab11c8be62150ad366bf86d15b140a7a73b0cd96483ed3724f09ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDkwOjIzQ0YwNjoyMTJBNDM2OjJBNDM1REU6NkIwMTYyQkQiLCJ2aXNpdG9yX2lkIjoiNjE3MTI0Mjg3MzY1NzMyMDEyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e2012a912180077aef571b046935682ab581032c9edcca68d8eeae204345f7a |
| hovercard-subject-tag | issue:483977150 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/33028/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf54eccc46f647993669e162198971f1b9833f8cbcfc2648f5b214408c6766a6/microsoft/TypeScript/issues/33028 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf54eccc46f647993669e162198971f1b9833f8cbcfc2648f5b214408c6766a6/microsoft/TypeScript/issues/33028 |
| og:image:alt | This is one js file. This file is automatically generated when customizing in the nativebase.io library. However, this file does not work with intellisense on vscode's tsserver. This causes the Int... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yahao87 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width