rthomas320 commented on PR #1077: URL: https://github.com/apache/daffodil-vscode/pull/1077#issuecomment-2286304486
I created issue #1065, "VS Code triggers code completion when typing a slash '/', but the trigger is defined as a space ' ' only", which I think your PR is addressing, but I didn't fully understand the problem when I put the PR in. We still want the '/' slash to trigger the self closing end tag. The actual problem was described in an email from one of the Daffodil project managers. You can get more information about joining the dev email list here: https://cwiki.apache.org/confluence/display/DAFFODIL/For+Contributors The email described this problem: > (blocking) There is a real problem with "/" being typed. I know it is trying to detect closing the element, but it has to be context sensitive since "/" is such a common character to appear inside strings. > To reproduce, at the top level of the schema, try typing <xs:include schemaLocation="/ I.e., a string that begins with a "/" character. The GUI refuses to let you do this. It removes the quotation marks and anything you've typed inside them. > So I tried typing <xs:include schemaLocation="" /> then going back and putting a "/" inside the quotes. Again the editor refuses, removes the quotes, remotes the "/" just typed. > I tried using single quotes, no improvement. > I tried typing some characters e.g., 'abc/ It still immediately reacts to the "/" character being typed, and deletes the string and quotation mark. > I re-opened the file from scratch. There is a line like this: > <xs:include schemaLocation="org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd" > /> > I position the cursor before the "org" and type "/", and it removes the entire path. > Interestingly, if I hit ctrl-Z to undo, it puts the text back, including the new leading "/" character. But this is not a workaround. Sorry for any confusion. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
