Skip to content

Commit 1914d7f

Browse files
committed
fix: remove experimental postfixes from extension
use ipatalas.vscode-postfix-ts extension instead, which is the best at postfixes
1 parent 2764835 commit 1914d7f

File tree

6 files changed

+0
-149
lines changed

6 files changed

+0
-149
lines changed

src/configurationType.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,6 @@ export type Configuration = {
249249
* @default false
250250
*/
251251
'jsxImproveElementsSuggestions.filterNamespaces': boolean
252-
/**
253-
* @default false
254-
*/
255-
'experimentalPostfixes.enable': boolean
256-
/**
257-
* Disable specific postfixes from this plugin
258-
* @default []
259-
*/
260-
'experimentalPostfixes.disablePostfixes': string[]
261252
/**
262253
* Requires TS server restart
263254
* @default false

src/experimentalPostfixes.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/extension.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Configuration } from './configurationType'
77
import webImports from './webImports'
88
import { sendCommand } from './sendCommand'
99
import { registerEmmet } from './emmet'
10-
import experimentalPostfixes from './experimentalPostfixes'
1110
import migrateSettings from './migrateSettings'
1211
import figIntegration from './figIntegration'
1312
import apiCommands from './apiCommands'
@@ -65,7 +64,6 @@ export const activateTsPlugin = (tsApi: { configurePlugin; onCompletionAccepted
6564
void possiblySyncConfig()
6665
}
6766

68-
experimentalPostfixes()
6967
moreCompletions()
7068
void registerEmmet()
7169
webImports()

typescript/src/completions/postfixesAtPosition.ts

Lines changed: 0 additions & 88 deletions
This file was deleted.

typescript/src/ipcTypes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export const passthroughExposedApiCommands = ['getNodePath', 'getSpanOfEnclosing
33
export const triggerCharacterCommands = [
44
...passthroughExposedApiCommands,
55
'emmet-completions',
6-
'getPostfixes',
76
'filterBySyntaxKind',
87
'removeFunctionArgumentsTypesInSelection',
98
'pickAndInsertFunctionArguments',

typescript/src/specialCommands/handle.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { compact } from '@zardoy/utils'
2-
import postfixesAtPosition from '../completions/postfixesAtPosition'
32
import { overrideRequestPreferences } from '../decorateProxy'
43
import { NodeAtPositionResponse, RequestOptionsTypes, RequestResponseTypes, TriggerCharacterCommand, triggerCharacterCommands } from '../ipcTypes'
54
import { findChildContainingExactPosition, findChildContainingPosition, getNodePath } from '../utils'
@@ -67,14 +66,6 @@ export default (
6766
typescriptEssentialsResponse: nodes.map(node => nodeToApiResponse(node)),
6867
}
6968
}
70-
if (specialCommand === 'getPostfixes') {
71-
const scriptSnapshot = info.languageServiceHost.getScriptSnapshot(fileName)
72-
if (!scriptSnapshot) return
73-
return {
74-
entries: [],
75-
typescriptEssentialsResponse: postfixesAtPosition(position, fileName, scriptSnapshot, info.languageService),
76-
} as any
77-
}
7869
if (specialCommand === 'getFixAllEdits') {
7970
// code adopted is for asyncInSync fix for now
8071
const interestedCodes = [1308]

0 commit comments

Comments
 (0)