Open flashios09 opened 1 year ago
I'm not sure but i think the issue is here:
[Trace - 7:06:37 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///PATH_TO_EMBER_APP/app/components/navigation/component.ts",
"diagnostics": [
{
"severity": 1,
"message": "Import declaration 'hb' is using private name ''.",
"source": "glint:ts(4000)",
"tags": [],
"range": {
"start": {
"line": 0,
"character": 9
},
"end": {
"line": 0,
"character": 9
}
}
}
]
}
After typing import hb
, the message is "Import declaration 'hb' is using private name ''."
!
dup of #130
@flashios09 if you upgrade to 1.3, do you get your completions back?
@flashios09 if you upgrade to 1.3, do you get your completions back?
@NullVoxPopuli Sorry for the delay :(
I have upgraded to 1.3, it will detect the imports but not triggering the completion, e.g.:
If i select service, it will just complete the word, from servi to service:
Expecting import { service } from '@ember/service'
but getting import service
!
The stacktrace BEFORE choosing the service import:
[Trace - 8:04:27 PM] Sending notification 'textDocument/didChange'.
Params: {
"textDocument": {
"uri": "file:///Volumes/Data/Sites/ember4121/app/routes/users.ts",
"version": 35
},
"contentChanges": [
{
"text": "import Route from '@ember/routing/route';\nimport servi\n\nexport default class UsersRoute extends Route {\n model() {\n }\n}\n"
}
]
}
[Trace - 8:04:27 PM] Sending request 'textDocument/codeAction - (36)'.
Params: {
"textDocument": {
"uri": "file:///Volumes/Data/Sites/ember4121/app/routes/users.ts"
},
"range": {
"start": {
"line": 1,
"character": 12
},
"end": {
"line": 1,
"character": 12
}
},
"context": {
"diagnostics": [],
"triggerKind": 2
}
}
[Trace - 8:04:27 PM] Received response 'textDocument/codeAction - (36)' in 2ms.
Result: []
[Trace - 8:04:27 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Volumes/Data/Sites/ember4121/app/routes/users.ts",
"diagnostics": [
{
"source": "glint",
"code": 1005,
"severity": 1,
"message": "'=' expected.",
"tags": [],
"range": {
"start": {
"line": 3,
"character": 0
},
"end": {
"line": 3,
"character": 6
}
}
}
]
}
[Trace - 8:04:27 PM] Sending request 'textDocument/codeAction - (37)'.
Params: {
"textDocument": {
"uri": "file:///Volumes/Data/Sites/ember4121/app/routes/users.ts"
},
"range": {
"start": {
"line": 1,
"character": 12
},
"end": {
"line": 1,
"character": 12
}
},
"context": {
"diagnostics": [],
"triggerKind": 2
}
}
[Trace - 8:04:27 PM] Received response 'textDocument/codeAction - (37)' in 2ms.
Result: []
The stacktrace AFTER choosing the service import:
[Trace - 8:07:03 PM] Sending notification 'textDocument/didChange'.
Params: {
"textDocument": {
"uri": "file:///Volumes/Data/Sites/ember4121/app/routes/users.ts",
"version": 39
},
"contentChanges": [
{
"text": "import Route from '@ember/routing/route';\nimport service\n\nexport default class UsersRoute extends Route {\n model() {\n }\n}\n"
}
]
}
[Trace - 8:07:04 PM] Sending request 'textDocument/codeAction - (46)'.
Params: {
"textDocument": {
"uri": "file:///Volumes/Data/Sites/ember4121/app/routes/users.ts"
},
"range": {
"start": {
"line": 1,
"character": 14
},
"end": {
"line": 1,
"character": 14
}
},
"context": {
"diagnostics": [],
"triggerKind": 2
}
}
[Trace - 8:07:04 PM] Received response 'textDocument/codeAction - (46)' in 1ms.
Result: []
[Trace - 8:07:04 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Volumes/Data/Sites/ember4121/app/routes/users.ts",
"diagnostics": [
{
"source": "glint",
"code": 1005,
"severity": 1,
"message": "'=' expected.",
"tags": [],
"range": {
"start": {
"line": 3,
"character": 0
},
"end": {
"line": 3,
"character": 6
}
}
}
]
}
[Trace - 8:07:04 PM] Sending request 'textDocument/codeAction - (47)'.
Params: {
"textDocument": {
"uri": "file:///Volumes/Data/Sites/ember4121/app/routes/users.ts"
},
"range": {
"start": {
"line": 1,
"character": 14
},
"end": {
"line": 1,
"character": 14
}
},
"context": {
"diagnostics": [],
"triggerKind": 2
}
}
[Trace - 8:07:04 PM] Received response 'textDocument/codeAction - (47)' in 2ms.
Result: []
Hi,
For a reason that i ignore, after disabling the builtin typescript extension, VSCode can't recognize the import paths and stop giving me suggestions/auto imports !
BEFORE
Import suggestion:
Service register suggestion:
Class/Interface suggestion:
AFTER
Import suggestion:
Service register suggestion:
Class/Interface suggestion:
I have enabled the tracking with verbose mode, trying to compare the default Typescript language server with Glint language server.
This is the output after typing
import hb
:Typescript language server:
Glint language server: