-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwaggerEditor@next: autocompletion works incorrectly #4216
Comments
@kowalczyk-krzysztof @char0n @ponelat This APIDom PR #2954 introduces support for language service "strict" filtering, by setting export class ApiDOMWorker {
static apiDOMContext = {
validatorProviders: [],
completionProviders: [],
performanceLogs: false,
logLevel: apidomLS.LogLevel.WARN,
defaultLanguageContent: {
namespace: 'asyncapi',
},
completionContext: {
maxNumberOfItems: 100,
enableLSPFilter: true,
},
}; An mentioned in swagger-api/apidom#2954 (comment) and copying from comment:
As a user I would probably favor the standard behavior with fuzzy matching, and IMO this would be kept disabled by default, still allowing apps to enable it, maybe even providing a user option. This is not a strong opinion though. #4289 adds a comment/placeholder demonstrating usage, in case decision is to implement it by default we will update PR to enable the flag. |
For reference see also microsoft/vscode#141224 and microsoft/vscode#64367 |
Yep, I do agree with keeping the current behavior (fuzzy matching) and giving the |
closing as completed in swagger-api/apidom#2954 and #4290 |
# [5.0.0-alpha.69](v5.0.0-alpha.68...v5.0.0-alpha.69) (2023-07-20) ### Bug Fixes * **docker:** update libtiff to non-vulnerable version ([#4296](#4296)) ([4da5bdb](4da5bdb)) ### Features * **monaco-language-apidom:** allow override ApiDOM Context ([#4290](#4290)) ([1a2081b](1a2081b)), closes [#4216](#4216) * **monaco-language-apidom:** move completionContext to APIDomContext ([36f86bb](36f86bb))
Autocompletion works inproperly on next editor. If I write e.g. aaa it shows all words which contains few a. I expect it should show only words which contains ‘aaa' in a row
Steps To Reproduce
Expected results
I expect it should show only words which contains ‘aaa' in a row. - see screen3 and screen4(examples from SH ACE editor)
Actual results
it shows all words which contains few a - see screen1 and screen2
screen1
![screen1](https://private-user-images.githubusercontent.com/193286/246780849-8da66511-c553-4d18-8a8c-0813dc48ed1c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzcwMzMsIm5iZiI6MTczOTIzNjczMywicGF0aCI6Ii8xOTMyODYvMjQ2NzgwODQ5LThkYTY2NTExLWM1NTMtNGQxOC04YThjLTA4MTNkYzQ4ZWQxYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwMTE4NTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZTIzYmFkOTZjNzRkNmYxMGI0YzVkODI3MzFjOWE4Y2Q0NWFiNDU0OTZjMDkyNDg2YjA0Mzg2MDEyYmE3YTIwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.fDhgnkE7rlUEJmpiBO4KM6TrSeN9h_uwHE59spWjM78)
screen2
![screen2](https://private-user-images.githubusercontent.com/193286/246780740-dbf58407-bc15-424a-825b-9e437acd6796.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzcwMzMsIm5iZiI6MTczOTIzNjczMywicGF0aCI6Ii8xOTMyODYvMjQ2NzgwNzQwLWRiZjU4NDA3LWJjMTUtNDI0YS04MjViLTllNDM3YWNkNjc5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwMTE4NTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNWY5OTM4NzUyMzBmZmM1ZWUwMWM5MjU0NDBlM2UzZWJkOWE5MWI5ZWJiNjE0YjFiN2MxNTFjZWE4NjVlNDI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Y-6IPXM61D5OK_IzAaDGy3Fg50DqM9qwqRLAfIgSnak)
screen3
screen4
Ref SWG-8475
The text was updated successfully, but these errors were encountered: